f4b6a3 / uuid-creator

UUID Creator is a Java library for generating Universally Unique Identifiers.
MIT License
431 stars 44 forks source link

time function for windows #53

Closed fabiolimace closed 2 years ago

fabiolimace commented 2 years ago

Created WindowsTimeFunction to be used when the OS is WINDOWS.

On WINDOWS, the typical system time granularity is 15.625ms due to a default 64Hz timer frequency.

BENCHMARK:

Benchmark                 Mode  Cnt     Score    Error   Units
UuidCreator_TimeBased    thrpt    5  9999,914 ± 12,420  ops/ms
UuidCreator_TimeOrdered  thrpt    5  9999,544 ± 15,313  ops/ms
fabiolimace commented 2 years ago

Released version v4.2.0.