Skip to main content

New answers tagged

2 votes

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,549
2 votes

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

Top 50 recent answers are included