Commit df1fc12
committed
refactor(common): 优化时间获取函数和 AcquisitionTime 定义
- 在 TotTime 类的 get() 方法中使用 tot_time.load(std::memory_order_relaxed) 替代直接返回 tot_time,以确保多线程环境下数据一致性
- 修改 AcquisitionTime 定义,将其命名为 GetTimeTEMP,以避免潜在的命名冲突1 parent 8394259 commit df1fc12
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments