MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / getStatTime

Method getStatTime

test/stats/TestQueryStats.java:295–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293 }
294
295 @Test
296 public void getStatTime() throws Exception {
297 final TSQuery query = new TSQuery();
298 query.setStart("1h-ago");
299 final QueryStats stats = new QueryStats(remote, query, headers);
300 stats.markSerializationSuccessful();
301 assertEquals(1000.0, stats.getTimeStat(QueryStat.PROCESSING_PRE_WRITE_TIME), 0.001);
302 assertEquals(Double.NaN, stats.getTimeStat(QueryStat.AVG_AGGREGATION_TIME), 0.001);
303 }
304}

Callers

nothing calls this directly

Calls 3

setStartMethod · 0.95
getTimeStatMethod · 0.95

Tested by

no test coverage detected