Jyxo\TimerTest::testTimer PHP Method

testTimer() public method

Tests the timer function.
public testTimer ( )
    public function testTimer()
    {
        Timer::timer();
        for ($i = 100; $i < 1000000; $i *= 10) {
            usleep($i * 2);
            $delta = Timer::timer();
            $this->assertGreaterThan($i / 1000000, $delta);
        }
    }