Date and time utilities

From Cppreference

< cpp
Jump to: navigation, search

Contents

[edit] Time point

Time point defines amount of time that has passed since the epoch of specific clock.

Defined in header <chrono>
Defined in namespace std::chrono
time_point (C++11)
a point in time
(class template)

[edit] Duration

Duration defines time span between two time points.

Defined in header <chrono>
Defined in namespace std::chrono
duration (C++11)
a time interval
(class template)

[edit] Clocks

Clock defines a mechanism to measure the amount of time since the epoch specific to that clock.

Defined in header <chrono>
Defined in namespace std::chrono
system_clock (C++11)
wall clock time from the system-wide realtime clock
(class)
steady_clock (C++11)
monotonic clock that will never be adjusted
(class)
high_resolution_clock (C++11)
the clock with the shortest tick period available
(class)

[edit] C library