Struct glin::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]