# right-now

> Get the quickest, most high-resolution timestamp possible in node or the browser

Latest version **1.0.0** (published 2014-06-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install right-now
pnpm add right-now
yarn add right-now
bun add right-now
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-06-09 |
| First published | 2013-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 57 |
| Author | Hugh Kennedy |
| Maintainers | hughsk |
| Keywords | time, high, resolution, fast, quick, nanosecond, millsecond, performance, now |

## Links

- npm: https://www.npmjs.com/package/right-now
- Repository: https://github.com/hughsk/right-now
- Issues: https://github.com/hughsk/right-now/issues
- npm.io page: https://npm.io/package/right-now

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-06-09
- 0.0.0 — 2013-08-27

## README

# right-now [![stable](http://hughsk.github.io/stability-badges/dist/stable.svg)](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`

---
_Source: https://npm.io/package/right-now · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
