aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSChernykh <sergey.v.chernykh@gmail.com>2023-06-08 07:55:47 +0200
committerSChernykh <sergey.v.chernykh@gmail.com>2023-06-08 07:55:47 +0200
commit26025cb294724f8f27615121b563d9e58a3de82b (patch)
treee9fe4d8b4fe0150d6eaa175a9e369cbaf9c0c4a2 /src
parentMerge pull request #8846 (diff)
downloadmonero-26025cb294724f8f27615121b563d9e58a3de82b.tar.xz
Speed up perf_timer init on x86
All Monero binaries have 1 second startup delay because of this code. This is especially noticeable and affects UX in Monero GUI wallet with local node where it often starts another monerod instance to run commands and query node status.
Diffstat (limited to 'src')
-rw-r--r--src/common/perf_timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/perf_timer.cpp b/src/common/perf_timer.cpp
index 30164a557..9b0fe5561 100644
--- a/src/common/perf_timer.cpp
+++ b/src/common/perf_timer.cpp
@@ -62,7 +62,7 @@ namespace tools
while (1)
{
t1 = epee::misc_utils::get_ns_count();
- if (t1 - t0 > 1*1000000000) break; // work one second
+ if (t1 - t0 > 1*100000000) break; // work 0.1 seconds
}
uint64_t r1 = get_tick_count();