옵션 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include <Windows.h> #include <ctime> #include <iostream> int timeSinceLastUpdate; int main() { while (!GetAsyncKeyState(VK_SPACE)) { if (clock() - timeSinceLastUpdate > 5000) { system("cls"); std::cout << "Test" << std::endl; std::cout << clock() << std::endl << std::endl; std::cout << "[SPACE] EXIT" << std::endl; timeSinceLastUpdate = clock(); } } } | cs |