| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | * |
| 48 | 48 | * @return void |
| 49 | 49 | */ |
| 50 | 50 | public function start(): void { |
| 51 | - $this->clock = time(); | |
| 51 | + $this->clock = defender_get_current_time(); | |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * Checks if the elapsed time has exceeded half of the maximum execution time. |
| @@ -69,7 +69,7 @@ | ||
| 69 | 69 | * |
| 70 | 70 | * @return int The time difference in seconds. |
| 71 | 71 | */ |
| 72 | 72 | public function get_difference(): int { |
| 73 | - return time() - $this->clock; | |
| 73 | + return defender_get_current_time() - $this->clock; | |
| 74 | 74 | } |
| 75 | 75 | } |