326 Subj : Re: Short interval timing To : borland.public.cpp.borlandcpp From : john blackburn Date : Thu Apr 29 2004 01:46 pm Gerhard Wolfstieg wrote: >> In it, I am trying to time short intervals (less than a few seconds) >> reasonably accurately. Now, the time functions in which, I >> believe, have their origins in Unix seem only to have the granularity of >> whole seconds. Is there a way I can determine the time between two >> events more accurately than this, whilst only using standard C and C++ >> libraries ? > Try: > > #include > > { SYSTEMTIME sysTime; > //... > GetLocalTime( &sysTime ); > } > > and catch milliseconds. > > gw Thanks for the reply. Is supported under Unix/Linux/Mac ? John . 0