extern crate async_profiler_agent;
use std::time::{Duration, Instant};
fn main() {
let start = Instant::now();
while start.elapsed() < Duration::from_secs(1) {
async_profiler_agent::pollcatch::before_poll_hook();
let mid = Instant::now();
while mid.elapsed() < Duration::from_millis(10) {
}
async_profiler_agent::pollcatch::after_poll_hook();
}
}