MCPcopy Create free account
hub / github.com/LUX-Core/lux / HTTPRPCTimer

Method HTTPRPCTimer

src/httprpc.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26{
27public:
28 HTTPRPCTimer(struct event_base* eventBase, boost::function<void(void)>& func, int64_t millis) :
29 ev(eventBase, false, NULL, func)
30 {
31 struct timeval tv;
32 tv.tv_sec = millis/1000;
33 tv.tv_usec = (millis%1000)*1000;
34 ev.trigger(&tv);
35 }
36private:
37 HTTPEvent ev;
38};

Callers

nothing calls this directly

Calls 1

triggerMethod · 0.80

Tested by

no test coverage detected