You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In timer.h some methods are defined to return the absolute time for a timer object. Some of them are depreciated becasue they do not return a data type within the full range:
As decribed in time.h there are better options, but not yet incorporated in the code:
INFO("Timer: %llu ms", std::chrono::duration_cast<std::chrono::milliseconds>(int_t.elapsed_time()).count()); // 64bit value
INFO("Timer: %llu us", static_cast<long long int>(int_t.elapsed_time().count())); //64bit value
2^64
1,84467E+19
us
1,84467E+16
ms
1,84467E+13
s
3,07446E+11
min
5124095576
h
213503982,3
d
584554,531
y
The text was updated successfully, but these errors were encountered:
You're right, I think that this should be changed to use a 64 bit type. std::chrono::duration_cast<std::chrono::milliseconds>(int_t.elapsed_time()).count() is the correct std::chrono way to do it.
In timer.h some methods are defined to return the absolute time for a timer object. Some of them are depreciated becasue they do not return a data type within the full range:
Note: INFO macro expands to a printf
As decribed in time.h there are better options, but not yet incorporated in the code:
The text was updated successfully, but these errors were encountered: