Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Tue May 28 01:29:57 CEST 2024

Total time taken to generate the page: 0.01042 seconds