Top "Chrono" questions

<chrono> is the C++11 library for representing and manipulating time.

Difference between two time_point instances is not a duration?

I don't understand why this code chokes with g++ 4.7.2: #include <chrono> main () { std::chrono::system_clock::time_point …

c++ g++ chrono
How to get the precision of high_resolution_clock?

C++11 defines high_resolution_clock and it has the member types period and rep. But I can not figure out …

c++ c++11 clock duration chrono
error: uint64_t was not declared in this scope when compiling C++ program

I am trying out a simple program to print the timestamp value of steady_clock as shown below: #include <…

c++ c++11 g++ chrono
C++11 actual system time with milliseconds

I've got a problem with getting actual system time with milliseconds. The only one good method I found is in …

c++ date c++11 time chrono
C++11 how to print out high resolution clock time_point

How do I print out a time_point when the time_point is obtained from high_resolution_clock? timestamp = std::…

c++ c++11 chrono
How print current time in C++11?

Is there an easy way in C++11 to print the current wall time using the appropriate formatting rules of the …

c++ c++11 locale chrono
How to convert std::chrono::time_point to std::tm without using time_t?

I would like to print or extract year/month/day values. I don't want to use time_t because of …

c++ c++11 chrono year2038
When is std::chrono epoch?

std::chrono::time_point::time_since_epoch() returns a duration, referred to some time_point in the past. When is …

c++ c++11 epoch chrono
Converting steady_clock::time_point to time_t

I'm using the steady_clock for saving the time stamp of some messages. For debug purpose is usefull to have …

c++ c++11 chrono
Interoperability between boost::date_time and std::chrono

How interoperable are boost::date_time and std::chrono? For example, is there a way to convert between boost::posix_…

c++ datetime boost c++11 chrono