mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 18:19:36 +01:00
More timing work
This commit is contained in:
1 parent
e31e6b1793
commit
cc75979f5b
10 files changed
+128
-16
No files matched your search
@@ -149,6 +149,14 @@ void sleep_ms(int ms) {
|
||||
#endif
|
||||
}
|
||||
|
||||
void sleep_s(double s) {
|
||||
#if defined(_WIN32) || defined(__EMSCRIPTEN__) || defined(HAVE_LIBNX)
|
||||
sleep_ms((int)(s * 1000.0));
|
||||
#else
|
||||
usleep((int)(s * 1000000));
|
||||
#endif
|
||||
}
|
||||
|
||||
// Return the current time formatted as Minutes:Seconds:Milliseconds
|
||||
// in the form 00:00:000.
|
||||
void GetTimeFormatted(char formattedTime[13]) {
|
||||
|
||||
Reference in new issue
Block a user