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:
parent
f88f92fbda
commit
bbe0d9dfd3
4 changed files with 16 additions and 231 deletions
|
@ -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() {
|
||||
|
|
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue