[email protected] wrote:

> I have a query related to gethrtime() and gettimeofday() system calls.
> Is there any relation between them?
> if given the hrtime can we get the system time and vice-versa in Solaris10.
>
> As far as i know,
> System time is determined using the 1 Jan 1970 as a reference.
> hrtime is calculated based on the Hardware clock tick and is given in
> nano-seconds.

There is no relation except that both times suffer the same way from a Quarz 
frequency offset.

gethrtime() gives nanoseconds since boot and is not related to wall clock time.

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to