Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ milliseconds

#include <chrono>

uint32_t GetMillis() {
	using namespace std::chrono;
	return static_cast<uint32_t>(duration_cast<milliseconds>(
		system_clock::now().time_since_epoch()).count());
}
 
PREVIOUS NEXT
Tagged: #milliseconds
ADD COMMENT
Topic
Name
3+3 =