6#ifndef BITCOIN_COMMON_SYSTEM_H
7#define BITCOIN_COMMON_SYSTEM_H
9#include <bitcoin-build-config.h>
std::optional< size_t > GetTotalRAM()
Return the total RAM available on the current system, if detectable.
SteadyClock::duration GetUptime()
Monotonic uptime (not affected by system time changes).
int GetNumCores()
Return the number of cores available on the current system.
std::string ShellEscape(const std::string &arg)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.