Skip to content

Commit eb26513

Browse files
authored
Switch to jiff from chrono (#350)
1 parent 8e91055 commit eb26513

File tree

4 files changed

+48
-86
lines changed

4 files changed

+48
-86
lines changed

Cargo.lock

+45-83
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ tensor = { git = "https://github.com/ntBre/tensor" }
2020

2121
approx = "0.5.1"
2222
assert_cmd = "2.0.16"
23-
chrono = "0.4.23"
2423
clap = { version = "4.5.30", features = ["derive"] }
2524
criterion = "0.5.0"
2625
env_logger = "0.11.3"
2726
insta = { version = "1.41.1", features = ["filters"] }
27+
jiff = { version = "0.2.1" }
2828
libc = "0.2.169"
2929
log = "0.4.22"
3030
nalgebra = "0.33.2"

crates/psqs/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ edition.workspace = true
66
[dependencies]
77
symm = { workspace = true }
88

9+
jiff = { workspace = true }
910
libc = { workspace = true }
1011
log = { workspace = true }
1112
env_logger = { workspace = true }
1213
regex = { workspace = true }
1314
serde_json = { workspace = true }
1415
serde = { workspace = true }
1516
tempfile = { workspace = true }
16-
chrono = { workspace = true }
1717
rayon = { workspace = true }
1818
test-case = { workspace = true }
1919

crates/psqs/src/queue/drain/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ where
475475
P: Program + Clone + Send + Sync + Serialize + for<'a> Deserialize<'a>,
476476
Q: Queue<P> + ?Sized + Sync,
477477
{
478-
let date = chrono::Local::now().format("%Y-%m-%d %H:%M:%S");
478+
let date = jiff::Zoned::now().strftime("%Y-%m-%d %H:%M:%S");
479479
eprintln!(
480480
"[iter {iter} {date} {:.1} CPU s] {remaining} jobs remaining",
481481
get_cpu_time()

0 commit comments

Comments
 (0)