monotonic timestamp library

monotonic timestamp.

Лицензия

Лицензия

Группа

Группа

com.zmannotes
Идентификатор

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

monotonic-timestamp
Последняя версия

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

0.0.7
Дата

Дата

Тип

Тип

jar
Описание

Описание

monotonic timestamp library
monotonic timestamp.
Ссылка на сайт

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

https://github.com/zman2013/monotonic-timestamp
Система контроля версий

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

https://github.com/zman2013/monotonic-timestamp

Скачать monotonic-timestamp

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

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

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

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

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

Travis Build Coverage Status

monotonic-timestamp

Monotonically increasing timestamp.
Since System.currentTimeMillis as ms, if you call it twice quickly, it's possible to get two identical time stamps.
This class fixes the problem!

The Timestamp is so lightweight, you can create one Timestamp instance for each signal source.
But you only has one signal source, just use the static method Timestamp.timestamp() directly.

Timestamp can generate 262144 unique timestamp in one milli-second.
Max valid timestamp: Fri Dec 12 20:41:28 CST 3084

dependency

gradle

implementation "com.zmannotes:monotonic-timestamp:0.0.6"

maven

<dependency>
    <groupId>com.zmannotes</groupId>
    <artifactId>monotonic-timestamp</artifactId>
    <version>0.0.5</version>
</dependency>

How to use

import com.zman.monotonic.timestamp.Timestamp;

...

long uniqueTimestamp = Timestamp.uniq();

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

Версия
0.0.7
0.0.6