v30.3-roots.1 · Commit 2: [PATCH 02/68] feat(runtime): preserve Roots operator controls on Core 30.3
src/common/system.h
Before: src/common/system.h · After: src/common/system.h
File metadata
index 2184f1d4c9e5ab8153583e2e64c39e3c7464019e..8d9268ab4881c6bd4b2ca1351b984d8eb8ec33f9 100644
Download original patch · Release notes
Diff rows 1–16 of 16. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/common/system.h
CHANGED
|
@@ -7,13 +7,14 @@
|
|
| 7 |
#define BITCOIN_COMMON_SYSTEM_H
|
| 8 |
|
| 9 |
#include <bitcoin-build-config.h> // IWYU pragma: keep
|
|
|
|
| 10 |
|
| 11 |
#include <cstdint>
|
| 12 |
#include <optional>
|
| 13 |
#include <string>
|
| 14 |
|
| 15 |
-
// Application startup time (used for uptime calculation)
|
| 16 |
-
int64_t GetStartupTime();
|
| 17 |
|
| 18 |
void SetupEnvironment();
|
| 19 |
[[nodiscard]] bool SetupNetworking();
|
|
|
|
| 7 |
#define BITCOIN_COMMON_SYSTEM_H
|
| 8 |
|
| 9 |
#include <bitcoin-build-config.h> // IWYU pragma: keep
|
| 10 |
+
#include <util/time.h>
|
| 11 |
|
| 12 |
#include <cstdint>
|
| 13 |
#include <optional>
|
| 14 |
#include <string>
|
| 15 |
|
| 16 |
+
/// Monotonic uptime (not affected by system time changes).
|
| 17 |
+
SteadyClock::duration GetUptime();
|
| 18 |
|
| 19 |
void SetupEnvironment();
|
| 20 |
[[nodiscard]] bool SetupNetworking();
|