pub fn time_resolution() -> c_double
Expand description
Resolution of timer used in time()
in seconds
Examples found in repository?
examples/time.rs (line 17)
6fn main() {
7 let universe = mpi::initialize().unwrap();
8 let world = universe.world();
9
10 let t_start = mpi::time();
11 world.barrier();
12 let t_end = mpi::time();
13
14 println!("barrier took: {} s", t_end - t_start);
15 println!(
16 "the clock has a resoltion of {} seconds",
17 mpi::time_resolution()
18 );
19}