U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Time in milliseconds
Re: Time in milliseconds [message #45883 is a reply to message #45834] Tue, 19 January 2016 16:39 Go to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

As long as U++ moves to C++11, you may try something like
#include <chrono>

using namespace std::chrono;

int main() {
  auto now = system_clock::now();
  time_point<system_clock> epoch;
  microseconds ms = duration_cast<milliseconds>(now - epoch);
  microseconds hs = std::chrono::hours(1);
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Critical section in PteBase::PtrAdd
Next Topic: [solved] Why doesn't Vector have Find?
Goto Forum:
  


Current Time: Thu Sep 03 07:22:22 GMT+2 2026

Total time taken to generate the page: 0.00895 seconds