MCPcopy Create free account
hub / github.com/ElementsProject/elements / HTTPRPCTimer

Method HTTPRPCTimer

src/httprpc.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

triggerMethod · 0.80

Tested by

no test coverage detected