use std::time::Duration;
use cpu_time::{ProcessTime, ThreadTime};
use crate::pal::abstractions::Platform;
#[derive(Clone, Debug)]
pub(crate) struct RealPlatform;
impl Platform for RealPlatform {
fn thread_time(&self) -> Duration {
ThreadTime::now().as_duration()
}
fn process_time(&self) -> Duration {
ProcessTime::now().as_duration()
}
}