DEV Community

Deepal Jayasekara
Deepal Jayasekara

Posted on • Originally published at blog.insiderattack.net on

How Not To Measure Time in Programming

a.k.a. how the likes of Date.now() will ruin your metrics.

If you fly between two airports that are in two different time zones, would you calculate the time it took for you to fly, by checking the difference between the ‘wall clock’ times of either airport?

If your answer is ‘no’, then let me explain why you shouldn’t do the same in your code, using a little but a very interesting experiment.

Continue reading on Deepal’s Blog »

Top comments (0)