Altered the path for Cygwin to set the _ticksPerSecond to the correct value.

This commit is contained in:
Robert Osfield
2004-11-18 09:19:15 +00:00
parent 70bb34af6a
commit 02ee5ff0cc
2 changed files with 5 additions and 4 deletions

View File

@@ -44,7 +44,11 @@ const Timer* Timer::instance()
if (_useStandardClock)
{
#if defined(__CYGWIN__)
_secsPerTick = 1e-6; // gettimeofday()'s precision.
#else
_secsPerTick = (1.0 / (double) CLOCKS_PER_SEC);
#endif
}
else
{