Cygwin: clocks: use either tickcount or tick period
Use whatever native unit the system provides for the resolution of a timer to avoid rounding problems Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -53,7 +53,11 @@ class clk_t
|
||||
{
|
||||
protected:
|
||||
LONG inited;
|
||||
/* Some values are returned as ticks/s, some as 100ns period of a
|
||||
single tick. Store the original value and use a computation method
|
||||
making the most sense for the value given, to avoid rounding issues. */
|
||||
LONGLONG ticks_per_sec;
|
||||
LONGLONG period;
|
||||
virtual void init ();
|
||||
virtual int now (clockid_t, struct timespec *) = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user