Czas trwania wykonania
use std::time::Instant;
let start = Instant:now();
f();
let duration = start.elapsed();
Mackerel
use std::time::Instant;
let start = Instant:now();
f();
let duration = start.elapsed();