Struct rin::gl::query::Duration [−][src]
pub struct Duration { /* fields omitted */ }
Combines two timestamps to check the duration of a gpu process
Use by calling begin at the beginning of a gpu process and end at the end, then call result(), usually on the next frame, to get the time meassure.
Duration takes care of not meassuring if the previous meassure is not available yet, so measuing right after a failed result() call won’t do anything and the last call will try to retrieve the previous result
Implementations
impl Duration
[src]
impl Duration
[src]Auto Trait Implementations
impl !RefUnwindSafe for Duration
impl !Send for Duration
impl !Sync for Duration
impl Unpin for Duration
impl !UnwindSafe for Duration
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]