From 76844067dda30f5ea7d283873cbdb06589a0fbb6 Mon Sep 17 00:00:00 2001 From: James Benton Date: Fri, 25 May 2018 17:13:40 +0100 Subject: [PATCH] Add OSSeconds to time.h --- include/coreinit/time.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/coreinit/time.h b/include/coreinit/time.h index 8e6eea4..6dae584 100644 --- a/include/coreinit/time.h +++ b/include/coreinit/time.h @@ -43,6 +43,7 @@ CHECK_OFFSET(OSCalendarTime, 0x24, tm_usec); CHECK_SIZE(OSCalendarTime, 0x28); #define OSOneSecond ((OSGetSystemInfo()->clockSpeed) / 4) +#define OSSeconds(val) (((uint64_t)(val)) * (uint64_t)(OSOneSecond)) #define OSMilliseconds(val) ((((uint64_t)(val)) * (uint64_t)(OSOneSecond)) / 1000ull) #define OSMicroseconds(val) ((((uint64_t)(val)) * (uint64_t)(OSOneSecond)) / 1000000ull) #define OSNanoseconds(val) ((((uint64_t)(val)) * (uint64_t)(OSOneSecond)) / 1000000000ull)