Tag: time
-
Handy script to get time difference in Javascript
When I was writing my fabricator.js library, I had to write some unit tests where I was thinking about measuring the time between two-time points. It's a quite easy task, but when it comes to calculating every time in your mind and convert from milliseconds to seconds and then…
-
Easily measuring code execution time in Scala
Recently i was working on big list generation in Scala and was wondering how much time does every approach takes in same conditions. Let's say that we need to create a list of Ints in range from 1 to 1000 with step == 1. You could do this in couple ways…