Skip to content
Bitcoin Roots

v29.4-roots.1 · Commit 2: [PATCH 02/13] 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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

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