A tiny millisecond conversion utility for elixir.
import Ms
ms("1s") # 1000
ms("2 seconds") # 2000
ms({1, :second}) # 1000
If available in Hex, the package can be installed
by adding ms
to your list of dependencies in mix.exs
:
def deps do
[
{:ms, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ms.