Struct kn_cuda_sys::wrapper::event::CudaEvent
source · pub struct CudaEvent(/* private fields */);Implementations§
source§impl CudaEvent
impl CudaEvent
pub fn new() -> Self
sourcepub fn time_elapsed_since(&self, start: &CudaEvent) -> f32
pub fn time_elapsed_since(&self, start: &CudaEvent) -> f32
Return the elapsed time since start in seconds.
pub fn synchronize(&self)
pub unsafe fn inner(&self) -> cudaEvent_t
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CudaEvent
impl !Send for CudaEvent
impl !Sync for CudaEvent
impl Unpin for CudaEvent
impl UnwindSafe for CudaEvent
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