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

Function now_ms

tools/cdb2sql/cdb2sql.cpp:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111static int connect_to_master = 0;
112
113static int now_ms(void)
114{
115 struct timeval tv;
116 if (gettimeofday(&tv, NULL) != 0) {
117 perror(__func__);
118 abort();
119 }
120 return (tv.tv_sec * 1000 + tv.tv_usec / 1000);
121}
122
123static void hexdump(FILE *f, uint8_t *p, int len)
124{

Callers 1

run_statementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected