<?php

class Jtf_ChronographTests extends KissUnitTest
{
    public function test_getElapsedTimeInMillisecs_is_zero_when_chrono_not_started()
    {
        $chrono = new Jtf_Chronograph();
        $chrono->stop();
        $ms = $chrono->getElapsedTimeInMillisecs();

        $this->assertEqual($ms, 0.0);
    }

    public function test_getElaspedTimeInSeconds_is_zero_when_chrono_not_started()
    {
        $chrono = new Jtf_Chronograph();
        $chrono->stop();
        $s = $chrono->getElaspedTimeInSeconds();

        $this->assertEqual($s, 0);
    }
}
