Skip to content

steady_clock should be used for measuring intervals #47

@danielhochman

Description

@danielhochman

steady_clock cannot go backwards. the system_clock can move with NTP, leap second, etc. durations observed by comparing timestamps from the system_clock will be incorrect if they span a system clock change.

in reality the library will need to use both clocks. start_timestamp should come from the system_clock and duration_micros should be measured using steady_clock.

typedef std::chrono::system_clock Clock;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions