Re: How to translate a mach_timespec ...
Re: How to translate a mach_timespec ...
- Subject: Re: How to translate a mach_timespec ...
- From: Peter Dyballa <email@hidden>
- Date: Sat, 26 Jul 2003 17:20:59 +0200
file:///Developer/Documentation/Darwin/General/KernelProgramming/Mach/_Time_Management.html
states:
The mach_timespec_t API is deprecated in Mac OS X. The newer and
preferred API is based on timer objects that in turn use AbsoluteTime as
the basic data type. AbsoluteTime is a machine-dependent type, typically
based on the platform-native time base. Routines are provided to convert
AbsoluteTime values to and from other data types, such as nanoseconds.
Timer objects support asynchronous, drift-free notification,
cancellation, and premature alarms. They are more efficient and permit
higher resolution than clocks.
file:///Developer/Documentation/Darwin/General/KernelProgramming/services/_Obtaining__Information.html
states:
The remaining functions return type mach_timespec_t, which is similar to
the traditional BSD struct timespec, except that fractions of a second
are measured in nanoseconds instead of microseconds:
|struct mach_timespec {|
| unsigned int tv_sec;|
| clock_res_t tv_nsec;|
|};|
|typedef struct mach_timespec *mach_timespec_t;|
--
Greetings
Pete
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.