@Test
    void testBasic() {
        TimeTracker t = new TimeTracker(null);
        t.injectTimeSource(new CreativeTimeSource(new long[]{1L, 2L, 3L, 4L}));
        Query q = new Query();
        Result r = new Result(q);
        t.sampleSearch(0, false);
        t.sampleFill(0, false);
        t.samplePing(0, false);
        t.sampleSearchReturn(0, false, r);
        assertEquals(1L, t.first());
        assertEquals(4L, t.last());
        assertEquals(2L, t.firstFill());
        assertEquals(1L, t.searchTime());
        assertEquals(1L, t.fillTime());
        assertEquals(1L, t.pingTime());
        assertEquals(3L, t.totalTime());
    }
Check sanity of TimeTracker and ElapsedTime.

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/search/statistics/ElapsedTimeTestCase.java