0.0.5 • Published 12 years ago

precisetime v0.0.5

Weekly downloads
22
License
-
Repository
github
Last release
12 years ago

preciseTime

JavaScriptCore has a handy global function called preciseTime() which aim is to provide a double, based on time, precise enough to ensure microseconds, but not as greedy as Java nanoTime in therms of clock. This precision has been proposed in W3C but is not available yet.

Since JSC offers this natively, the aim of this little script is to normalize this function that specially when it comes to benchmarks or asynchronous queue ordered by execution time, could be all we need.

The node.js version might require microtime. I have not set the dependency since that module has bindings and it might be more problematic to install.

Browsers that do not implement HighResolutionTime will simply return new Date / 1000 to be consistent with other results.

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago