Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
double dtime = (double) (MTIME * 1e-6);
9
10
TEST(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
18
TEST(TIMER, USER) {
19
// auto tv = tic_user();
Callers
nothing calls this directly
Calls
2
tic
Function · 0.85
toc
Function · 0.85
Tested by
no test coverage detected