Commit Graph

4 Commits

Author SHA1 Message Date
Amnon Heiman
88dcf2e935 latency: Switch to steady_clock
The system clock is less suitable for for time difference than
steady_clock.

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
2015-12-01 15:28:06 +02:00
Avi Kivity
d5cf0fb2b1 Add license notices 2015-09-20 10:43:39 +03:00
Amnon Heiman
af2ec7c7e8 Utils add an is start method to latency_counter
When doing a spares latency check, it is required to know if a latency
object was started.

This returns true if the start timer was set.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
2015-08-11 09:05:11 +03:00
Amnon Heiman
b2c5e2a7cc utils: adding the latency object
The latency object is used to simplify calculating latencies. It uses a
start and stop time_point so the latency can be queried multiple time.

The start need to be done explicitely and not in the constructor to
allow reuse of the object.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
2015-07-26 10:57:32 +03:00