MCPcopy Create free account
hub / github.com/dmlc/parameter_server / TEST

Function TEST

src/test/timer_test.cc:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8double dtime = (double) (MTIME * 1e-6);
9
10TEST(TIMER, REAL) {
11 auto tv = tic();
12 usleep(MTIME);
13 double t = toc(tv);
14 EXPECT_LE(t, dtime+1e-4);
15 EXPECT_GE(t, dtime-1e-4);
16}
17
18TEST(TIMER, USER) {
19 // auto tv = tic_user();

Callers

nothing calls this directly

Calls 2

ticFunction · 0.85
tocFunction · 0.85

Tested by

no test coverage detected