{{pkg.description}}
Note
The functions in this package have been extracted from @thi.ng/bench.
This package provides the following functions:
now()
attempts to use high-res ESBigInt
timestamps (in Node viaprocess.hrtime.bigint()
), or falls back toperformance.now()
, or lacking that, usesDate.now()
. In all cases, returns a (possibly rounded) nanosec-scale timestamp, either asbigint
ornumber
.timeDiff()
function can be used to compute the difference between two such timestamp and return it as milliseconds.asMillis()
takes a duration (either a number or bigint) in nanosec-scale and converts it to a JS number in milliseconds
{{meta.status}}
{{repo.supportPackages}}
{{repo.relatedPackages}}
{{meta.blogPosts}}
{{pkg.install}}
{{pkg.size}}
{{pkg.deps}}
{{repo.examples}}
{{pkg.docs}}
TODO