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:
parent
f2d6bf73ca
commit
80eb12a9d6
@ -27,6 +27,10 @@ u64 get_time()
|
|||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
if (!clock_gettime(CLOCK_MONOTONIC, &ts))
|
if (!clock_gettime(CLOCK_MONOTONIC, &ts))
|
||||||
return ts.tv_sec * (s64)10000000 + (s64)ts.tv_nsec / (s64)100;
|
return ts.tv_sec * (s64)10000000 + (s64)ts.tv_nsec / (s64)100;
|
||||||
|
|
||||||
|
// Should never occur.
|
||||||
|
assert(0);
|
||||||
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user