nano-time

WebJar for nano-time

Лицензия

Лицензия

ISC
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

nano-time
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

nano-time
WebJar for nano-time
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/sazze/node-nanotime

Скачать nano-time

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/nano-time/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>nano-time</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/nano-time/
implementation 'org.webjars.npm:nano-time:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/nano-time/
implementation ("org.webjars.npm:nano-time:1.0.0")
'org.webjars.npm:nano-time:jar:1.0.0'
<dependency org="org.webjars.npm" name="nano-time" rev="1.0.0">
  <artifact name="nano-time" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='nano-time', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "nano-time" % "1.0.0"
[org.webjars.npm/nano-time "1.0.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : big-integer jar [1.6.16,2)

Модули Проекта

Данный проект не имеет модулей.

NanoTime

Gets the current time in nanoseconds or microseconds.

In node.js you can get high resolution time with process.hrtime(), but it is from an unknown relative time, not epoch. So this library helps that by calculating the difference and adding it to the current time.

Usage

Since javascript can't hold a nanosecond as an INT safely (Number.MAX_SAFE_INTEGER), we return a string instead.

const now = require('nano-time');

now(); // '1476742925219947761' (returns a string)
now.micro(); // '1476742921398373'
now.microseconds(); // alias for now.micro();
org.webjars.npm

Sazze, Inc.

Версии библиотеки

Версия
1.0.0