Skip to content

Releases: Mnwa/ms

Long reverse ms functions support

02 May 11:23
400dcac
Compare
Choose a tag to compare

Features

  • get_max_possible_duration function which converts milliseconds into human-like time string without postfix.

Reverse ms functions support

01 May 18:26
c1670c9
Compare
Choose a tag to compare

Features

  • get_duration_by_postfix function, which converts milliseconds into a human-like time string
  • get_max_possible_duration function, which converts milliseconds into a human-like time string without postfix

Optimize release

28 Apr 12:04
7c3e347
Compare
Choose a tag to compare

Features

  • Added + support
let value = ms("+100").unwrap();
assert_eq!(value, 100)
  • Now ms supported only one whitespace between number and postfix
let value = ms("100 ms").unwrap(); // valid
assert_eq!(value, 100)
let value = ms("100  ms").unwrap(); // invalid
assert_eq!(value, 100)

Optimizes

  • Now it works on 2x faster! (from 16ns to 8ns)

Doc fixes release

28 Mar 12:47
0283b73
Compare
Choose a tag to compare

Improvements

  • Now ms, ms_into_time and ms_expr! have normal descriptions on index page docs

No std release

28 Mar 12:37
ef0f2c6
Compare
Choose a tag to compare

Features

  • Now ms_converter used no_std directive, which makes it possible to use it on embedded devices.

Improvements

  • Converted Cow pointer into an str slice, which can save 1-2 ns per call.
  • Updated docs on doc.rs

Stable release

25 Mar 10:57
592c79b
Compare
Choose a tag to compare

Features

  • Now ms and ms_into_time functions support String on input without breaking changes.

Improvements

  • Increased performance. ms function sped up ~ 60%! From 27 ns per iter to 16 ns per iter on the benches.
  • Added many new tests.

Update docs release

24 Mar 08:36
3bb1acd
Compare
Choose a tag to compare

Now a doc has a examples of supported time strings.

Refactoring improvements

23 Mar 16:11
fa7a768
Compare
Choose a tag to compare

Now it more readable

Small improvements

23 Mar 10:44
e86088b
Compare
Choose a tag to compare

Add small improvements, now ms search value with bytes

Update docs release

18 Mar 09:39
73d8fbd
Compare
Choose a tag to compare

Changes

  • Added docs for constants and Error struct