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

Method HTTPRPCTimer

src/rpc/core/rpcserver.cpp:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

triggerMethod · 0.80

Tested by

no test coverage detected