v29.4-roots.2 · Commit 2: [PATCH 02/21] runtime: preserve shared operator controls
src/common/system.h
Before: src/common/system.h · After: src/common/system.h
File metadata
index a4b56be9ac9fbaab13e21317abe8914d3457119a..bce5603cd83b35355821c4d56b9d6662de572ece 100644
Download original patch · Release notes
Diff rows 1–15 of 15. 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,12 +7,13 @@
|
|
|
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 <string>
|
|
13
14
|
|
|
14
|
-
// Application startup time (used for uptime calculation)
|
|
15
|
-
int64_t GetStartupTime();
|
|
15
|
+
/// Monotonic uptime (not affected by system time changes).
|
|
16
|
+
SteadyClock::duration GetUptime();
|
|
16
17
|
|
|
17
18
|
void SetupEnvironment();
|
|
18
19
|
[[nodiscard]] bool SetupNetworking();
|