Handle different timestamp resolutions (fixes #4)

Chrome e.g. is using a lower resolution for the onprogress timestamps,
which caused the values to be off and the rounding to fail.