Documentation Home

Obtain the current time from the system-wide steady clock.

time_point now() noexcept;

Returns:

A time_point representing the current time of the system-wide steady clock.

Throws:

An exception of type std::system_error if an error occurs.

Synchronization:

If one call to std::chrono::steady_clock::now() happens-before another, the time_point returned by the first call shall compare less-than or equal-to the time_point returned by the second call.

Header

#include <chrono>

See Also