1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! This crate allows you to measure how long it takes for a program to execute in different
//! clocks. It ports the functions of the [`boost-chrono`](https://boost.org/libs/chrono)
//! and [`boost-timer`](https://boost.org/libs/timer) libraries.
//!
//! The following clocks and their corresponding timers are implemented.
//!
//! * [`SystemClock`], [`SystemTimer`]
//! * [`SteadyClock`], [`SteadyTimer`] if supported by the system.
//! * [`HighResolutionClock`], [`HighResolutionTimer`]
//! * [`ProcessRealCPUClock`], [`ProcessRealCPUTimer`]
//! * [`ProcessUserCPUClock`], [`ProcessUserCPUTimer`]
//! * [`ProcessSystemCPUClock`], [`ProcessSystemCPUTimer`]
//! * [`ProcessCPUClock`], [`ProcessCPUTimer`]
//! * [`ThreadClock`], [`ThreadTimer`]
//!
//! See [`crate::clock`] to read more about their differences.
//!
//! # Usage
//!
//! Add this to your `Cargo.toml`:
//! ```toml
//! [dependencies]
//! howlong = "0.1"
//! ```
//!
//! # Examples
//!
//! ```
//! use howlong::*;
//!
//! let timer = HighResolutionTimer::new();
//! // do some computations
//! println!("{:?} have passed.", timer.elapsed());
//!
//! let timer = ProcessCPUTimer::new();
//! // do other computations
//! println!("{}", timer.elapsed());
//! ```
pub use *;
pub use *;
pub use *;