src/bin/proxmox-backup-client.rs: print backup duration

This commit is contained in:
Dietmar Maurer 2019-03-05 08:11:40 +01:00
parent d57474e055
commit 3ec3ec3f9a
1 changed files with 3 additions and 0 deletions

View File

@ -339,6 +339,9 @@ fn create_backup(
} }
let end_time = Local.timestamp(Local::now().timestamp(), 0); let end_time = Local.timestamp(Local::now().timestamp(), 0);
let elapsed = end_time.signed_duration_since(backup_time);
println!("Duration: {}", elapsed);
println!("End Time: {}", end_time.to_rfc3339()); println!("End Time: {}", end_time.to_rfc3339());
Ok(Value::Null) Ok(Value::Null)