> 1) TimingTest::testMark
> Failed asserting that
1455828402.4503 is greater than
1455828402.4503.
Use usleep(100), similar to the other tests already there.
Change-Id: Ic45c99b7e928df397809d872ab8e41ada6ecf1e7
$this->assertArrayHasKey( 'startTime', $entry );
$this->assertEquals( 0, $entry['duration'] );
+ usleep( 100 );
$timing->mark( 'a' );
$newEntry = $timing->getEntryByName( 'a' );
$this->assertGreaterThan( $entry['startTime'], $newEntry['startTime'] );
$timing = new Timing;
$timing->mark( 'a' );
- $a = $timing->getEntryByName( 'a' );
-
+ usleep( 100 );
$timing->mark( 'b' );
+
+ $a = $timing->getEntryByName( 'a' );
$b = $timing->getEntryByName( 'b' );
$timing->measure( 'a_to_b', 'a', 'b' );