1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-27 17:07:44 +00:00

debug: use jiff instead of chrono

This commit is contained in:
RGBCube 2025-05-18 17:19:29 +03:00
parent f88f92fbda
commit bbe0d9dfd3
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
4 changed files with 16 additions and 231 deletions

View file

@ -12,8 +12,7 @@ pub fn run_debug(config: &AppConfig) -> Result<(), AppError> {
println!("Version: {}", env!("CARGO_PKG_VERSION"));
// Current date and time
let formatted_time = chrono::Local::now().format("%Y-%m-%d %H:%M:%S");
println!("Timestamp: {formatted_time}");
println!("Timestamp: {}", jiff::Timestamp::now());
// Kernel information
if let Ok(kernel_info) = get_kernel_info() {

View file

@ -133,10 +133,7 @@ fn main() -> Result<(), AppError> {
);
// Format timestamp in a readable way
println!(
"Current Time: {}",
chrono::Local::now().format("%Y-%m-%d %H:%M:%S")
);
println!("Current Time: {}", jiff::Timestamp::now());
format_section("CPU Global Info");
println!(