Skip to content

Commit a9b3948

Browse files
committed
docs(rtc): Mention in the time_since_boot() that the timer is reset only on a power-on-reset
1 parent b81533a commit a9b3948

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

esp-hal/src/rtc_cntl/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ impl<'d> Rtc<'d> {
288288
}
289289

290290
/// Get the time since boot.
291+
///
292+
/// It should be noted that any reset or sleep, other than a power-up reset, will not stop or
293+
/// reset the RTC timer.
291294
pub fn time_since_boot(&self) -> Duration {
292295
Duration::from_micros(
293296
self.time_since_boot_raw() * 1_000_000

0 commit comments

Comments
 (0)