1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-24 11:43:05 +01:00

Always return a value in get_time().

Although, clock_gettime() should never fail here.
This commit is contained in:
Unknown W. Brackets 2014-04-27 20:38:43 -07:00
parent f2d6bf73ca
commit 80eb12a9d6

View File

@ -27,6 +27,10 @@ u64 get_time()
struct timespec ts;
if (!clock_gettime(CLOCK_MONOTONIC, &ts))
return ts.tv_sec * (s64)10000000 + (s64)ts.tv_nsec / (s64)100;
// Should never occur.
assert(0);
return 0;
#endif
}