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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*!
## Features
- **std**
Enables standard library support. When enabled, the crate cannot be used in `no_std` environments.
- **bool_ext**
- Adds `.then_ok_or_else(||{err})` & `.then_ok_or(err)` method for `bool` type
- **print_ext**
- Provides some printing helpers.
- **re_exports_tap**
- `pub use tap`
- **os_cmd**
Configurable command builders:
- Preconfigured cargo command structs (e.g., `CargoDoc`, `CargoCmd`)
- Cross-platform command execution utilities
*/
extern crate alloc;
pub use tap;
/// Runs the given function and prints the elapsed time.
/// It supports stable Rust.
///
/// ## Example
///
/// ```ignore
/// fn bench_foo() {
/// testutils::simple_benchmark(|| {
/// foo() // Your code here...
/// })
/// }
/// ```