[−][src]Function tarantool_module::clock::process
pub fn process() -> f64
The processor time.
Derived from C function clock_gettime(CLOCK_PROCESS_CPUTIME_ID)
.
This is the best function to use with benchmarks that need to calculate how much time has been spent within a CPU.
Return: seconds or nanoseconds since processor start.
Return type: u64
or f64
Example:
// This will print nanoseconds in the CPU since the start. use tarantool_module::clock::process64; println!("{}", process64());