Skip to content

Commit

Permalink
Add sleep 1 to reduce cpu usage
Browse files Browse the repository at this point in the history
  • Loading branch information
AcezukyRockon authored Oct 22, 2023
1 parent 90dbf05 commit 7401af3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions osu! sheet/Source.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "Base.h" //include this to use Base.h functions
#include "Base.h" //include this to use Base.h functions
#include "Rule.h" //include this to use Rule.h functions
#include "ListPlayers.h" //include this to use ListPlayers.h functions
#include "Mappool.h" //include this to use Mappool.h functions
Expand Down Expand Up @@ -165,9 +165,10 @@ int main() {
continue;
}
}
else Sleep(1);
}
//cin.get();
a->gotoxy(1, 20); //move cursor to (1,20) and let the program print "Press any key to continue" at that coordinate
system("pause"); //pause the screen so that you can see the result (some IDE doesn't need this)
return 0; //bye bye
}
}

0 comments on commit 7401af3

Please sign in to comment.