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 9)
5fn main() {
6 let universe = mpi::initialize().unwrap();
7 let world = universe.world();
8
9 let t_start = mpi::time();
10 world.barrier();
11 let t_end = mpi::time();
12
13 println!("barrier took: {} s", t_end - t_start);
14 println!(
15 "the clock has a resoltion of {} seconds",
16 mpi::time_resolution()
17 );
18}