diff --git a/src/commandbuffer.rs b/src/commandbuffer.rs index 26fea2e..f978668 100644 --- a/src/commandbuffer.rs +++ b/src/commandbuffer.rs @@ -66,6 +66,14 @@ impl CommandBufferRef { } } + pub fn gpu_start_time(&self) -> f64 { + unsafe { msg_send![self, GPUStartTime] } + } + + pub fn gpu_end_time(&self) -> f64 { + unsafe { msg_send![self, GPUEndTime] } + } + pub fn set_label(&self, label: &str) { unsafe { let nslabel = crate::nsstring_from_str(label);