I don't know if you are still interested in this project given that the last commit was 3 years ago, but I figured I would make this pull request anyway. If you're wondering how I found this project, someone posted a link to it in a Quora question about Jeff Dean's numbers every programmer should know, and Quora in turn highlighted that answer on their social media.
The first change I have made is that in the 10us case, if the time is less than 1us then the result will just be displayed in nanoseconds exactly. This was because from ~2012 onwards there were some rounding effects where it would display results like 1,000ns ~= 0.7us. I have also done the same for the ms case, where if the time is smaller than 1ms it will switch to showing the result in us and then ns when the time drops below 1us.
The second change is that I have modified the default year so that instead of being hardcoded, it switches to the current year.
Both of these changes have been tested in the latest versions of Firefox and Chrome on Windows 8.
I don't know if you are still interested in this project given that the last commit was 3 years ago, but I figured I would make this pull request anyway. If you're wondering how I found this project, someone posted a link to it in a Quora question about Jeff Dean's numbers every programmer should know, and Quora in turn highlighted that answer on their social media.
The first change I have made is that in the 10us case, if the time is less than 1us then the result will just be displayed in nanoseconds exactly. This was because from ~2012 onwards there were some rounding effects where it would display results like 1,000ns ~= 0.7us. I have also done the same for the ms case, where if the time is smaller than 1ms it will switch to showing the result in us and then ns when the time drops below 1us.
The second change is that I have modified the default year so that instead of being hardcoded, it switches to the current year.
Both of these changes have been tested in the latest versions of Firefox and Chrome on Windows 8.