This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
int main(){ | |
std::chrono::high_resolution_clock clock; | |
while (1){ | |
uint64_t current_ms = std::chrono::duration_cast<std::chrono::microseconds>(clock.now().time_since_epoch()).count(); | |
std::cout << "\r" << current_ms << std::flush; | |
} | |
} |