How do you print a C++11 time_point?
I've created a time point, but I have been struggling to print it to the terminal. #include <iostream> #include <chrono> int main(){ //set time_point to current time std::chrono::time_point<std::chrono::system_clock,std::chrono::nanoseconds> time_point; time_point = std::chrono::system_clock::now(); //print the time //... return 0; } The only documentation I can find that prints a time_point is found here: http://en.cppreference.com/w/cpp/chrono/time_point however, I'm not even able to create a time_t based on my time_point(like the example). std::time_t now_c = std::chrono::system_clock::to