Skip to main content
1 vote

Why are Time.realtimeSinceStartup and Time.realtimeSinceStartupAsDouble so slow when called repeatedly?

High resolution timers on Windows have always been somewhat slow to query. I found a 20 year old Dr Dobbs article, that reports QueryPerformanceCounter() being around 88 times slower than GetTickCount(...
Adam's user avatar
  • 7,479
1 vote

Why are Time.realtimeSinceStartup and Time.realtimeSinceStartupAsDouble so slow when called repeatedly?

I would not use either of these Time properties for timing a loop. For that, you should use a Stopwatch. It's designed expressly for the purpose of timing how long ...
DMGregory's user avatar
  • 136k

Only top scored, non community-wiki answers of a minimum length are eligible