mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 17:47:12 -04:00
DS: Increase thresholds for timer overflow detection
This commit is contained in:
parent
189b164be4
commit
0c2fc7f5c5
@ -50,7 +50,7 @@ cc_uint64 Stopwatch_ElapsedMicroseconds(cc_uint64 beg, cc_uint64 end) {
|
||||
cc_uint64 Stopwatch_Measure(void) {
|
||||
u32 raw = cpuGetTiming();
|
||||
// Since counter is only a 32 bit integer, it overflows after a minute or two
|
||||
if (raw < 0x00100000 && last_raw > 0xFFF00000) {
|
||||
if (last_raw > 0xF0000000 && raw < 0x10000000) {
|
||||
base_time += 0x100000000ULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user