StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
798 B
29 lines
798 B
4 years ago
|
# right-now [](http://github.com/hughsk/stability-badges) #
|
||
|
|
||
|
Get the quickest, most high-resolution timestamp possible in node or the
|
||
|
browser.
|
||
|
|
||
|
Instead of returning the date, `right-now` may use `performance.now`,
|
||
|
`Date.now`, `+new Date` or `process.hrtime` to get a timestamp suitable for
|
||
|
measuring intervals of time. Handy for both animation loops and precision
|
||
|
benchmarking.
|
||
|
|
||
|
It's pretty small but saves me writing this boilerplate every time :)
|
||
|
|
||
|
## Installation ##
|
||
|
|
||
|
``` bash
|
||
|
npm install right-now
|
||
|
```
|
||
|
|
||
|
## Usage ##
|
||
|
|
||
|
### `require('right-now')()` ###
|
||
|
|
||
|
Returns a timestamp. In node, this uses `process.hrtime`. In the browser,
|
||
|
support for the following is checked in this order:
|
||
|
|
||
|
* `performance.now()`
|
||
|
* `Date.now()`
|
||
|
* `+new Date`
|