use iced::time::Instant;
#[cfg(not(all(feature = "icedwright", not(target_arch = "wasm32"))))]
pub(crate) fn now() -> Instant {
Instant::now()
}
#[cfg(all(feature = "icedwright", not(target_arch = "wasm32")))]
pub(crate) fn now() -> Instant {
icedwright_probe::time::now()
}
#[cfg(feature = "calendar")]
pub(crate) fn timestamp() -> jiff::Timestamp {
#[cfg(all(feature = "icedwright", not(target_arch = "wasm32")))]
if let Ok(now) = jiff::Timestamp::try_from(icedwright_probe::time::system_now()) {
return now;
}
jiff::Timestamp::now()
}