Català-Valencià - Catalan
中文 - Chinese (Simplified)
中文 - Chinese (Traditional)
Česky - Czech
Dansk - Danish
Nederlands - Dutch
English - English
Suomi - Finnish
Français - French
Deutsch - German
עברית - Hebrew
हिंदी - Hindi
Magyar - Hungarian
Bahasa Indonesia - Indonesian
Italiano - Italian
日本語 - Japanese
한국어 - Korean
Македонски - Macedonian
मराठी - Marathi
Norsk - Norwegian
Polski - Polish
Português - Portuguese
Português - Portuguese (Brazil)
Русский - Russian
Slovenčina - Slovak
Slovenščina - Slovenian
Español - Spanish
Svenska - Swedish
Türkçe - Turkish
Українська - Ukrainian
Oëzbekcha - Uzbek
Subversion Repositories
shark
(root)
/
shark
/
tags
/
rel_1_0
/
oslib
/
examples
/
pitsdemo.c
- Rev 2
Rev
Go to most recent revision
|
Blame
|
Compare with Previous
|
Last modification
|
View Log
|
RSS feed
#include <ll/i386/pit.h>
#include <ll/sys/ll/time.h>
main
(
)
{
struct
pitspec ps1
;
struct
timespec ts1
;
ps1.
units
=
1432809
;
ps1.
gigas
=
10
;
PITSPEC2TIMESPEC
(
&
ps1
,
&
ts1
)
;
message
(
"%lu %lu
\n
"
,
PITSPEC2USEC
(
&
ps1
)
,
TIMESPEC2USEC
(
&
ts1
)
)
;
message
(
"%lu %lu
\n
"
,
ts1.
tv_sec
,
ts1.
tv_nsec
)
;
for
(
;;
)
;
}