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

Function uptime

src/rpc/server.cpp:242–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static UniValue uptime(const JSONRPCRequest& jsonRequest)
243{
244 if (jsonRequest.fHelp || jsonRequest.params.size() > 1)
245 throw std::runtime_error(
246 "uptime\n"
247 "\nReturns the total uptime of the server.\n"
248 "\nResult:\n"
249 "ttt (numeric) The number of seconds that the server has been running\n"
250 "\nExamples:\n"
251 + HelpExampleCli("uptime", "")
252 + HelpExampleRpc("uptime", "")
253 );
254
255 return GetTime() - GetStartupTime();
256}
257
258/**
259 * Call Table

Callers

nothing calls this directly

Calls 5

HelpExampleCliFunction · 0.85
HelpExampleRpcFunction · 0.85
GetTimeFunction · 0.85
GetStartupTimeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected