From db853e42176cf82e5b873cbea19afa58ff9846c5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 9 Oct 2018 14:47:52 +0200 Subject: [PATCH] Add PS3 ifdef --- Src/Libretro/Timer.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Src/Libretro/Timer.c b/Src/Libretro/Timer.c index 9ce1299..4ebffb1 100644 --- a/Src/Libretro/Timer.c +++ b/Src/Libretro/Timer.c @@ -19,6 +19,16 @@ UInt32 archGetSystemUpTime(UInt32 frequency) return (rtc_tick / frequency); } +#elif defined(__CELLOS_LV2__) +#include + + +UInt32 archGetSystemUpTime(UInt32 frequency) +{ + u64 rtc_tick = _mftb(); + return (rtc_tick / frequency); +} + #elif defined(_WIN32) static LONGLONG uptime_hfFrequency = 0; static signed long long uptime_offset = 0;