More command line improvements

This commit is contained in:
Henrik Rydgård committed 2026-07-27 18:37:28 +02:00
1 parent 3139d7ccfe
commit 5ef736f6a7
8 files changed
+52 -46

No files matched your search

+16
View File
@@ -65,6 +65,8 @@ void TimeInit() {
// The timer will be automatically deleted on process destruction. Don't need to CloseHandle.
Timer = CreateWaitableTimerExW(NULL, NULL, CREATE_WAITABLE_TIMER_HIGH_RESOLUTION, TIMER_ALL_ACCESS);
// TODO: We probably don't need this anymore if we are using the high res waitable timers?
#if !PPSSPP_PLATFORM(UWP)
TIMECAPS caps;
timeGetDevCaps(&caps, sizeof caps);
@@ -73,6 +75,12 @@ void TimeInit() {
#endif
}
void TimeShutdown() {
#if PPSSPP_PLATFORM(WINDOWS)
timeEndPeriod(1);
#endif
}
double time_now_d() {
LARGE_INTEGER time;
QueryPerformanceCounter(&time);
@@ -141,6 +149,10 @@ void TimeInit() {
// Nothing to do.
}
void TimeShutdown() {
// Nothing to do.
}
// The only intended use is to match the timings in VK_GOOGLE_display_timing
uint64_t time_now_raw() {
struct timespec tp;
@@ -210,6 +222,10 @@ void TimeInit() {
// Nothing to do.
}
void TimeShutdown() {
// Nothing to do.
}
static time_t start;
double time_now_d() {