pub fn time() -> c_double
Expand description
Time in seconds since an arbitrary time in the past.
The cheapest high-resolution timer available will be used.
Examples found in repository?
examples/time.rs (line 10)
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}