HDFGroup / hsds

Cloud-native, service based access to HDF data
https://www.hdfgroup.org/solutions/hdf-kita/
Apache License 2.0
125 stars 52 forks source link

Fix inaccurate creation order on Windows #346

Closed mattjala closed 2 months ago

mattjala commented 2 months ago

On Windows, time.time() has a low resolution (~16ms), so objects created in sequence sometimes have the same 'created' timestamp.

Creation time is now computed by adding the precise time elapsed since node startup (from time.perf_counter) to the recorded unix time at node startup, in the new helper timeUtil.getNow().

Fixes #344