use std::time::Instant;
use windows::Win32::System::SystemInformation::GetTickCount64;
use crate::pal::windows::Bindings;
#[derive(Debug, Default)]
pub(crate) struct BuildTargetBindings;
impl Bindings for BuildTargetBindings {
#[inline]
fn get_tick_count_64(&self) -> u64 {
unsafe { GetTickCount64() }
}
#[inline]
fn now(&self) -> Instant {
Instant::now()
}
}
#[cfg(test)]
#[cfg_attr(coverage_nightly, coverage(off))]
mod tests {
use std::panic::{RefUnwindSafe, UnwindSafe};
use super::*;
static_assertions::assert_impl_all!(BuildTargetBindings: UnwindSafe, RefUnwindSafe);
}