@@ -112,16 +112,16 @@ pub use timer::Timer;
112
112
mod timer {
113
113
/// A timer to measure execution time.
114
114
///
115
- /// On `unix`/`windows` systems, this is based on `cpu_time::ProcessTime `, on `wasm` systems, it is
115
+ /// On `unix`/`windows` systems, this is based on `cpu_time::ThreadTime `, on `wasm` systems, it is
116
116
/// based on `std::time::Instant`.
117
117
#[ derive( Debug , Clone , Copy , Eq , PartialEq , Hash ) ]
118
- pub struct Timer ( cpu_time:: ProcessTime ) ;
118
+ pub struct Timer ( cpu_time:: ThreadTime ) ;
119
119
120
120
impl Timer {
121
121
/// Gets the current time
122
122
#[ must_use]
123
123
pub fn now ( ) -> Self {
124
- Timer ( cpu_time:: ProcessTime :: now ( ) )
124
+ Timer ( cpu_time:: ThreadTime :: now ( ) )
125
125
}
126
126
127
127
/// Gets the amount of time elapsed since the timer was initialized
@@ -136,7 +136,7 @@ mod timer {
136
136
mod timer {
137
137
/// A timer to measure execution time.
138
138
///
139
- /// On `unix`/`windows` systems, this is based on `cpu_time::ProcessTime `, on `wasm` systems, it is
139
+ /// On `unix`/`windows` systems, this is based on `cpu_time::ThreadTime `, on `wasm` systems, it is
140
140
/// based on `std::time::Instant`.
141
141
#[ derive( Debug , Clone , Copy , Eq , PartialEq , Hash ) ]
142
142
pub struct Timer ( std:: time:: Instant ) ;
0 commit comments