pub struct Timer<'g> { /* private fields */ }Expand description
用一对 CUDA 事件量设备上一段工作的耗时(只算 GPU 执行,不含主机侧开销)。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'g> !Send for Timer<'g>
impl<'g> !Sync for Timer<'g>
impl<'g> Forget for Timer<'g>
impl<'g> Freeze for Timer<'g>
impl<'g> Move for Timer<'g>
impl<'g> RefUnwindSafe for Timer<'g>
impl<'g> Unpin for Timer<'g>
impl<'g> UnsafeUnpin for Timer<'g>
impl<'g> UnwindSafe for Timer<'g>
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