1 2 3 4 5 6 7 8 9 10
use glfw::WindowEvent; use min_timer::{Now, Sec}; use crate::Display; impl<T: FnMut(WindowEvent)> Now for Display<T> { fn now(&self) -> Sec { Sec::from(self.glfw().get_time()) } }