Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this)
- that = Clock();
- #include <iostream>
- #include <chrono>
- using namespace std::chrono;
- int main() {
- auto start = system_clock::now();
- while (duration_cast<seconds>(system_clock::now() - start).count() < 5)
- ;
- // It is now 5 seconds later.
- }
Add Comment
Please, Sign In to add comment