Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <chrono>
- #include <thread>
- int main()
- {
- while (true) {
- std::cout << "sleeping for 500ms" << std::endl;
- std::this_thread::sleep_for(std::chrono::milliseconds(500));
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment