// SPDX-License-Identifier: Apache-2.0
// Copyright (c) The pliron contributors
//! A simple timer utility.
usepliron::std_deps::time;/// A simple timer utility
pubstructTimer(time::Instant);implTimer{/// Starts a new timer.
pubfnstart()->Self{Self(time::Instant::now())}/// Returns the elapsed time since the timer was started.
pubfnelapsed(&self)->core::time::Duration{self.0.elapsed()}}