List:Internals« Previous MessageNext Message »
From:Sergei Golubchik Date:August 26 2009 6:23am
Subject:Re: what is a 100 nanosec unit -- my_getsystime()
View as plain text  
Hi, MARK!

On Aug 25, MARK CALLAGHAN wrote:
> I stumbled across this comment.
> What is a 100 nanosec unit? Why was that used instead of nanosecs or microsecs?

It's a unit of time used in uuid (original, version 1)
http://en.wikipedia.org/wiki/Universally_Unique_Identifier
 
> /* get time since epoc in 100 nanosec units */
> /* thus to get the current time we should use the system function
>    with the highest possible resolution */
> ...
> ulonglong my_getsystime()
> {
> ...
> }
 
Regards / Mit vielen Grüßen,
Sergei

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  Principal Software Engineer/Server Architect
/_/  /_/\_, /___/\___\_\___/  Sun Microsystems GmbH, HRB München 161028
       <___/                  Sonnenallee 1, 85551 Kirchheim-Heimstetten
Geschäftsführer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel
Vorsitzender des Aufsichtsrates: Martin Häring
Thread
what is a 100 nanosec unit -- my_getsystime()MARK CALLAGHAN26 Aug
  • Re: what is a 100 nanosec unit -- my_getsystime()Sergei Golubchik26 Aug