mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Always return a value in get_time().
Although, clock_gettime() should never fail here.
This commit is contained in:
parent
f2d6bf73ca
commit
80eb12a9d6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue