mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
More command line improvements
This commit is contained in:
1 parent
3139d7ccfe
commit
5ef736f6a7
8 files changed
+52
-46
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user