Skip to content

Instantly share code, notes, and snippets.

@numanturle
Created December 19, 2020 00:57
Show Gist options
  • Save numanturle/9bd577d3407834d66a394cdc3c1c8427 to your computer and use it in GitHub Desktop.
Save numanturle/9bd577d3407834d66a394cdc3c1c8427 to your computer and use it in GitHub Desktop.
#include <windows.h>
#include <iostream>
using namespace std;
//https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-sleepex
//https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-sleep
//75BF3C9A | E8 11000000 | call <kernelbase.SleepEx> |
int main() {
for (int i = 0; i < 5; i++) {
cout << i << "\n";
cout << "Uyku Basliyor";
Sleep(1000);
cout << "Uyku Bitti";
}
int x;
cin >> x;
return x;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment