MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / HTTPRPCTimer

Method HTTPRPCTimer

src/httprpc.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31{
32public:
33 HTTPRPCTimer(struct event_base* eventBase, std::function<void(void)>& func, int64_t millis) :
34 ev(eventBase, false, func)
35 {
36 struct timeval tv;
37 tv.tv_sec = millis/1000;
38 tv.tv_usec = (millis%1000)*1000;
39 ev.trigger(&tv);
40 }
41private:
42 HTTPEvent ev;
43};

Callers

nothing calls this directly

Calls 1

triggerMethod · 0.80

Tested by

no test coverage detected