MCPcopy Create free account
hub / github.com/acl-dev/acl / expired

Method expired

app/master/tools/master_dispatch/server/client/ClientConnection.cpp:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool ClientConnection::expired() const
40{
41 struct timeval now;
42
43 gettimeofday(&now, NULL);
44 long long present = ((acl_uint64) now.tv_sec) * 1000000
45 + ((acl_uint64) now.tv_usec);
46
47 return present >= expire_ ? true : false;
48}

Callers 1

timer_callbackMethod · 0.80

Calls 1

gettimeofdayFunction · 0.50

Tested by

no test coverage detected