Documentation Home >> Headers >> <chrono> Header >> std::chrono::system_clock >> std::chrono::system_clock::now Static Member Function

Obtain the current wall-clock time from the system-wide real-time clock.

time_point now() noexcept;

Returns:

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

Throws:

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

Header

#include <chrono>

See Also