Create a new [`SystemClockMeasurement`]
()
| 49 | impl SystemClockMeasurement { |
| 50 | /// Create a new [`SystemClockMeasurement`] |
| 51 | pub fn now() -> Self { |
| 52 | let pre = read_timestamp_counter_begin(); |
| 53 | let system_time = RealTime.get_time(); |
| 54 | let post = read_timestamp_counter_end(); |
| 55 | let tsc = pre.midpoint(post); |
| 56 | Self { |
| 57 | system_time, |
| 58 | tsc: TscCount::new(tsc.into()), |
| 59 | } |
| 60 | } |
| 61 | } |
nothing calls this directly
no test coverage detected