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

Method RPCCommandExecution

src/rpc/server.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49{
50 std::list<RPCCommandExecutionInfo>::iterator it;
51 explicit RPCCommandExecution(const std::string& method)
52 {
53 LOCK(g_rpc_server_info.mutex);
54 it = g_rpc_server_info.active_commands.insert(g_rpc_server_info.active_commands.end(), {method, GetTimeMicros()});
55 }
56 ~RPCCommandExecution()
57 {
58 LOCK(g_rpc_server_info.mutex);

Callers

nothing calls this directly

Calls 3

GetTimeMicrosFunction · 0.85
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected