Obtain the current wall-clock time from the system-wide real-time clock.
time_point now() noexcept;
- Returns:
A
time_pointrepresenting the current time of the system-wide real-time clock.- Throws:
An exception of type
std::system_errorif an error occurs.
Header
#include <chrono>