MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / timems

Function timems

tests/tools/testutil.c:140–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140uint64_t timems(void)
141{
142 int rc;
143 struct timeval tv;
144 rc = gettimeofday(&tv, NULL);
145 if (rc == -1) {
146 fprintf(stderr, "Can't get time rc %d %s\n", errno, strerror(errno));
147 return 1;
148 }
149 return (tv.tv_sec * 1000000 + tv.tv_usec) / 1000;
150}
151
152uint64_t timeus(void)
153{

Callers 3

thdFunction · 0.85
thdFunction · 0.85
updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected