deepti.g...@cmcltd.com 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:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de (uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code