pub struct ProfileTicks { /* private fields */ }
Expand description
Start and end point for a profile. Can be turned into a duration.
Implementations§
Source§impl ProfileTicks
impl ProfileTicks
Sourcepub fn from_start_end(start: Instant, end: Instant) -> Self
pub fn from_start_end(start: Instant, end: Instant) -> Self
Create a new ProfileTicks
from a start and end time.
Sourcepub fn start_duration_since(&self, epoch: Instant) -> Duration
pub fn start_duration_since(&self, epoch: Instant) -> Duration
Get the duration since the epoch start of this ProfileTicks
.
Sourcepub fn end_duration_since(&self, epoch: Instant) -> Duration
pub fn end_duration_since(&self, epoch: Instant) -> Duration
Get the duration since the epoch end of this ProfileTicks
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProfileTicks
impl RefUnwindSafe for ProfileTicks
impl Send for ProfileTicks
impl Sync for ProfileTicks
impl Unpin for ProfileTicks
impl UnwindSafe for ProfileTicks
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more