Top "Chrono" questions

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

How to get duration, as int milli's and float seconds from <chrono>?

I'm trying to use chrono library for timers and durations. I want to be able to have a Duration frameStart; ( …

c++ c++11 timer chrono
C++ How do I convert a std::chrono::time_point to long and back

I need to convert std::chrono::time_point to and from a long type (integer 64 bits). I´m starting working …

c++ c++11 chrono
How to convert std::chrono::time_point to calendar datetime string with fractional seconds?

How to convert std::chrono::time_point to calendar datetime string with fractional seconds? For example: "10-10-2012 12:38:40.123456"

c++ datetime c++11 std chrono
C++ chrono system time in milliseconds, time operations

I've got a small problem caused by insufficient documentation of C++11. I'd like to obtain a time since epoch in …

c++ time c++11 chrono
Outputting Date and Time in C++ using std::chrono

I have been upgrading some old code and have been trying to update to c++11 where possible. The following code …

c++ date c++11 time chrono
precise time measurement

I'm using time.h in C++ to measure the timing of a function. clock_t t = clock(); someFunction(); printf("\nTime …

c++ visual-studio-2010 chrono ctime
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> #…

c++ templates time c++11 chrono
Extract year/month/day etc. from std::chrono::time_point in C++

How can I extract the year, month, day, hour, minute, second and millisecond from an std::chrono::time_point object? …

c++ time c++11 chrono
Get time since epoch in milliseconds, preferably using C++11 chrono

All I want is to get the time since epoch in milliseconds and store it in an unsigned long. I …

c++ c++11 chrono
std::chrono and cout

I have a stupid problem. I try to switch to the c++11 headers and one of those is chrono. But …

c++ time c++11 chrono