how to convert "std::chrono::system_clock::now()" to double

Viewed 8327
auto current_time = std::chrono::system_clock::now();

Using std::chrono in C++ I get current time like above.
How can I use it to get the number of seconds since the clock's epoch as a double?

1 Answers
Related