Commit 481e48a
committed
util: Add GetTimeMillis convenience wrapper for chrono timestamps
Add a convenience wrapper function for obtaining the current system time
in milliseconds. This uses the modern std::chrono library internally
while providing a shorter, more readable interface for code that needs
millisecond precision timestamps.
This improves code readability in areas like the TrafficGraphWidget that
work with millisecond timestamps while maintaining compatibility with
Bitcoin Core's move toward using std::chrono-based time handling.1 parent 7fd4745 commit 481e48a
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
0 commit comments