Implement pause function
This commit is contained in:
@@ -35,3 +35,10 @@ void time_printf(const char *fmt, ...)
|
|||||||
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void pause()
|
||||||
|
{
|
||||||
|
printf("Prese [Enter] to continue...");
|
||||||
|
fflush(stdout);
|
||||||
|
getchar();
|
||||||
|
}
|
||||||
@@ -60,4 +60,6 @@ double get_current_time(void);
|
|||||||
|
|
||||||
double get_real_time();
|
double get_real_time();
|
||||||
|
|
||||||
|
void pause();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user