aionnetwork / node_test_harness

A test harness for functional integration testing the Aion kernel(s)
MIT License
0 stars 4 forks source link

Switch the benchmarking timestamps to nanotime #40

Closed aionick closed 5 years ago

aionick commented 5 years ago

We have two cases where the timestamps we record are for benchmarking purposes - one for when the RPC call it sent, another for when an event is observed. Currently these timestamps are in milliseconds from System.currentTimeMillis(). We should switch these to System.nanoTime() - it is not subject to internal clock time issues and is at least as precise as the milliseconds measurement.