pastebin

Paste Search Dynamic
Recent pastes
time since epoch microseconds
  1. #include <chrono>
  2. #include <cstdint>
  3. #include <iostream>
  4.  
  5. uint64_t timeSinceEpochMicroseconds() {
  6.   using namespace std::chrono;
  7.   return duration_cast<microseconds>(system_clock::now().time_since_epoch()).count();
  8. }
  9.  
  10. int main() {
  11.   std::cout << timeSinceEpochMicroseconds() << std::endl;
  12.   return 0;
  13. }
Parsed in 0.008 seconds