cpucycles_sys/lib.rs
1#![allow(non_upper_case_globals, clippy::redundant_static_lifetimes)]
2
3include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
4
5#[cfg(test)]
6mod tests {
7 use super::*;
8
9 #[test]
10 fn cpucycles_test() {
11 let start = unsafe { cpucycles.unwrap()() };
12 let end = unsafe { cpucycles.unwrap()() };
13 assert!(end >= start);
14 }
15}