21 releases

0.1.23 Jun 13, 2024
0.1.22 Jun 13, 2024
0.1.21 Apr 9, 2024
0.1.19 Jan 13, 2024
0.0.4 Aug 18, 2023

#16 in #ms

Download history 29/week @ 2024-07-20 53/week @ 2024-07-27 40/week @ 2024-08-03 50/week @ 2024-08-10 61/week @ 2024-08-17 46/week @ 2024-08-24 70/week @ 2024-08-31 26/week @ 2024-09-07 24/week @ 2024-09-14 87/week @ 2024-09-21 31/week @ 2024-09-28 4/week @ 2024-10-05 22/week @ 2024-10-12 30/week @ 2024-10-19 75/week @ 2024-10-26 60/week @ 2024-11-02

187 downloads per month
Used in 14 crates (11 directly)

Apache-2.0

9KB
194 lines

sts : shortcut for timestamp

→ tests/main.rs

use sts::{ms, sec};

#[test]
fn main() {
  dbg!(sec());
  dbg!(ms());
}

run tests :

→ out.txt

+ cargo test -- --nocapture
   Compiling libc v0.2.147
   Compiling once_cell v1.18.0
   Compiling coarsetime v0.1.23
   Compiling sts v0.0.3 (/Users/z/art/sts)
    Finished test [unoptimized + debuginfo] target(s) in 0.45s
     Running unittests src/lib.rs (target/debug/deps/sts-313e1f24663d0a18)
     Running tests/main.rs (target/debug/deps/main-7ad98a7b1f67db68)
[tests/main.rs:5] sec() = 1692364903
[tests/main.rs:6] ms() = 1692364903773
   Doc-tests sts

Dependencies

~1–1.6MB
~25K SLoC