pub struct LaunchTiming {
pub elapsed_us: f64,
}Expand description
Timing information for a completed kernel launch.
Fields§
§elapsed_us: f64Elapsed GPU time in microseconds.
Implementations§
Source§impl LaunchTiming
impl LaunchTiming
Sourcepub fn elapsed_ms(&self) -> f64
pub fn elapsed_ms(&self) -> f64
Returns the elapsed time in milliseconds.
Sourcepub fn elapsed_secs(&self) -> f64
pub fn elapsed_secs(&self) -> f64
Returns the elapsed time in seconds.
Trait Implementations§
Source§impl Clone for LaunchTiming
impl Clone for LaunchTiming
Source§fn clone(&self) -> LaunchTiming
fn clone(&self) -> LaunchTiming
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaunchTiming
impl Debug for LaunchTiming
Source§impl Display for LaunchTiming
impl Display for LaunchTiming
Source§impl PartialEq for LaunchTiming
impl PartialEq for LaunchTiming
impl Copy for LaunchTiming
impl StructuralPartialEq for LaunchTiming
Auto Trait Implementations§
impl Freeze for LaunchTiming
impl RefUnwindSafe for LaunchTiming
impl Send for LaunchTiming
impl Sync for LaunchTiming
impl Unpin for LaunchTiming
impl UnsafeUnpin for LaunchTiming
impl UnwindSafe for LaunchTiming
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