MCPcopy Create free account
hub / github.com/PLSysSec/wave / stop_timer

Function stop_timer

src/stats/timing.rs:117–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115
116#[inline]
117pub fn stop_timer() -> u64 {
118 unsafe {
119 let mut junk: u32 = 0;
120 let ans: u64 = __rdtscp(&mut junk);
121 __cpuid_count(0, 0);
122 ans
123 }
124}
125
126pub fn push_hostcall_result(name: &str, start: u64, end: u64) {
127 // println!("name: {:?}", name);

Calls

no outgoing calls

Tested by

no test coverage detected