diff --git a/Cargo.toml b/Cargo.toml index a5a75bc..c465188 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,8 @@ jsonwebtoken = { version = "9.3.0", optional = true } http = { version = "1.1.0", optional = true } +humantime = "2.1.0" + [dev-dependencies] googletest = "0.11.0" test-log = { version = "0.2.16", default-features = false, features = ["trace", "color"] } diff --git a/src/vm/mod.rs b/src/vm/mod.rs index a7d5ab1..43b41ed 100644 --- a/src/vm/mod.rs +++ b/src/vm/mod.rs @@ -32,7 +32,7 @@ use std::borrow::Cow; use std::collections::VecDeque; use std::fmt; use std::mem::size_of; -use std::time::Duration; +use std::time::{Duration, SystemTime}; use strum::IntoStaticStr; use tracing::{enabled, instrument, Level}; @@ -436,7 +436,11 @@ impl super::VM for CoreVM { ret )] fn sys_sleep(&mut self, wake_up_time: Duration) -> VMResult { - invocation_debug_logs!(self, "Executing 'Sleep for {wake_up_time:?}'"); + invocation_debug_logs!( + self, + "Executing 'Sleep for {}'", + humantime::format_rfc3339(SystemTime::UNIX_EPOCH + wake_up_time) + ); self.do_transition(SysCompletableEntry( "SysSleep", SleepEntryMessage {