Skip to content

Commit

Permalink
timestamps: document panic
Browse files Browse the repository at this point in the history
  • Loading branch information
tmplt committed Dec 3, 2021
1 parent 6530e8c commit 23dbd28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions itm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,12 @@ where
}

/// Returns an iterator over [`TimestampedTracePackets`](TimestampedTracePackets).
///
/// # Panics
///
/// This iterator constuctor will panic if
/// [`options.lts_prescaler`](TimestampsConfiguration::lts_prescaler)
/// is [`Disabled`](LocalTimestampOptions::Disabled).
pub fn timestamps(&mut self, options: TimestampsConfiguration) -> Timestamps<R> {
Timestamps::new(self, options)
}
Expand Down

0 comments on commit 23dbd28

Please sign in to comment.