mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Timer
* calling reset() on the Timer no longer breaks the interval
This commit is contained in:
@@ -449,7 +449,7 @@ class Timer
|
||||
|
||||
public function reset() : void
|
||||
{
|
||||
$this->t_cur = 0;
|
||||
$this->t_cur = microtime(true) - $this->intv;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user