We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e68ea2 commit 676cdf2Copy full SHA for 676cdf2
measureme/src/profiler.rs
@@ -123,9 +123,13 @@ impl Profiler {
123
}
124
125
/// Creates a "start" event and returns a `DetachedTiming`.
126
- /// To create the corresponding "event" event, yuu must call
+ /// To create the corresponding "event" event, you must call
127
/// `finish_recording_internal_event` with the returned
128
- /// `DetachedTiming`
+ /// `DetachedTiming`.
129
+ /// Since `DetachedTiming` does not capture the lifetime of `&self`,
130
+ /// this method can sometimes be more convenient than
131
+ /// `start_recording_interval_event` - e.g. it can be stored
132
+ /// in a struct without the need to add a lifetime parameter.
133
#[inline]
134
pub fn start_recording_interval_event_detached(
135
&self,
0 commit comments