Skip to content

Releases: Mnwa/ms

Converting milliseconds into Duration

18 Mar 08:37
04ec58d
Compare
Choose a tag to compare

Features

  • Now you can convert str slice into time.Duration!

Example

use crate::ms_converter::ms_into_time;

let value = ms_into_time("1d").unwrap();
assert_eq!(value.as_millis(), 86400000)

Converting time without any runtime overhead

17 Mar 20:48
2a44cc2
Compare
Choose a tag to compare

Features

  • crate::ms_converter::ms_expr macro, now you can convert time into constants and calculate values in a compilation.

Example:

use crate::ms_converter::ms_expr;

const VALUE: i64 = ms_expr!(i64, 1 d);
assert_eq!(VALUE, 86400000)

Inline ms function

16 Mar 07:58
60a158a
Compare
Choose a tag to compare

Now ms function will be inlined, which will save 3-4ns on benches

Change ms signature

13 Mar 21:05
10391a7
Compare
Choose a tag to compare

Breaking changes

  • Now ms library returned i64 type

Update home page in crates io

13 Mar 12:52
26c5158
Compare
Choose a tag to compare
0.4.2

Update homepage

Update docs

12 Mar 13:22
f568620
Compare
Choose a tag to compare
0.4.1

Add doc

Remove benches to use lib on stable release channel

12 Mar 11:53
6a81933
Compare
Choose a tag to compare

Remove any deps and increase ms perfomans

12 Mar 11:17
a47a932
Compare
Choose a tag to compare

Increased perf from 436 ns/iter to 4 ns/iter

Optimisation release, change function signature

12 Mar 09:55
a47a932
Compare
Choose a tag to compare

#Breaking changes
Now you must pass &str to ms function

First release

12 Mar 09:54
f96ca0f
Compare
Choose a tag to compare
0.1.0

Update doc