The Virtual Clock basically tracks time at the start of each frame, so 
that every action done within that cycle will use the same time value.  This is 
usually desirable for most graphical and physics position calculations.
        If you're looking for a value that changes within the frame cycle, use 
csGetTicks() (milliseconds) or csGetMicroTicks()  (microseconds).  On linux 
these functions use gettimeofday() to retrieve their values.  On Windows they 
use QueryPerformanceCounter.

Andrew

Martin Henne wrote:
> Hi all,
> 
> in my application I have to use a somewhat accurate millisecond
> timer as I am exchanging data with an external computer about
> 100 times per second.
> 
> Currently we use the boost library's microsec_clock which in
> turn uses unix's gettimeofday() (I'm using linux).
> 
> Can I use iVirtualClock::GetCurrentTicks() for that or
> does this clock run faster/slower or less accurate for some
> reason?
> 
> Tnx in advance.
> 
> 
> 
> 
> Martin
> 
> 
> _______________________________________________
> Crystal-main mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/crystal-main
> Unsubscribe: mailto:[EMAIL PROTECTED]


_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to