Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <ctime>
- int main()
- {
- FreeConsole();
- time_t t1, t2;
- time( &t1 );
- while ( true )
- {
- time( &t2 );
- if ( t2 - t1 >= 3600 )
- {
- MessageBox( NULL, "WALK AROUND", "", MB_OK );
- time( &t1 );
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement