Tag: convert
-
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…