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. The two line-number columns refer to before and after.
src/common/system.h
CHANGED
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
#define BITCOIN_COMMON_SYSTEM_H
|
|
8
8
|
|
|
9
9
|
#include <bitcoin-build-config.h> // IWYU pragma: keep
|
|
10
|
+
#include <util/time.h>
|
|
10
11
|
|
|
11
12
|
#include <cstdint>
|
|
12
13
|
#include <optional>
|
|
13
14
|
#include <string>
|
|
14
15
|
|
|
15
|
-
// Application startup time (used for uptime calculation)
|
|
16
|
-
int64_t GetStartupTime();
|
|
16
|
+
/// Monotonic uptime (not affected by system time changes).
|
|
17
|
+
SteadyClock::duration GetUptime();
|
|
17
18
|
|
|
18
19
|
void SetupEnvironment();
|
|
19
20
|
[[nodiscard]] bool SetupNetworking();
|