Subj : Re: Short interval timing To : borland.public.cpp.borlandcpp From : Giampaolo Bellini Date : Thu Apr 29 2004 03:03 pm you can also real the cpu timestamp: __int64 __fastcall GetRDTSC(void) { asm dw 0x310F } Giampaolo Bellini john blackburn wrote: > 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 .