pub struct Timer {
pub start_time: u128,
pub total_time: u128,
pub timer: Instant,
pub now_time: u128,
}Expand description
Timer for tracking application and page runtimes.
用于跟踪应用程序和页面运行时间的计时器。
Fields§
§start_time: u128Time when the current page was entered, in milliseconds.
进入当前页面的时间(毫秒)。
total_time: u128Total runtime of the application since start, in milliseconds.
应用程序自启动以来的总运行时间(毫秒)。
timer: InstantCore timer instance for precise timing.
用于精确计时的核心计时器实例。
now_time: u128Runtime of the current page, in milliseconds.
当前页面的运行时间(毫秒)。
Trait Implementations§
Source§impl PartialOrd for Timer
impl PartialOrd for Timer
impl Copy for Timer
impl StructuralPartialEq for Timer
Auto Trait Implementations§
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
impl UnwindSafe for Timer
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