pub fn ggml_time_us() -> i64
Expand description
Get the time in microseconds according to ggml
use llama_cpp_2::ggml_time_us;
let start = ggml_time_us();
std::thread::sleep(Duration::from_micros(10));
let end = ggml_time_us();
let elapsed = end - start;
assert!(elapsed >= 10)