From 1aeaee221df642bf438d37caf33f45b08aa8e4a5 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 29 Apr 2024 19:43:17 +0000 Subject: [PATCH] devices: rtc_pl031: drop TimstampUs It is not used anywhere in code. Signed-off-by: Wei Liu --- devices/src/legacy/rtc_pl031.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/devices/src/legacy/rtc_pl031.rs b/devices/src/legacy/rtc_pl031.rs index 2341a692b..0b2fc98a8 100644 --- a/devices/src/legacy/rtc_pl031.rs +++ b/devices/src/legacy/rtc_pl031.rs @@ -153,24 +153,6 @@ impl fmt::Display for LocalTime { } } -/// Holds a micro-second resolution timestamp with both the real time and cpu time. -#[derive(Clone)] -pub struct TimestampUs { - /// Real time in microseconds. - pub time_us: u64, - /// Cpu time in microseconds. - pub cputime_us: u64, -} - -impl Default for TimestampUs { - fn default() -> TimestampUs { - TimestampUs { - time_us: get_time(ClockType::Monotonic) / 1000, - cputime_us: get_time(ClockType::ProcessCpu) / 1000, - } - } -} - /// Returns a timestamp in nanoseconds based on the provided clock type. /// /// # Arguments