Closed gavv closed 6 months ago
These two functions parses time and size units like "100ms" or "10M".
Currently, they allow only integer numbers, but it would be nice to support floats too. E.g. "2.5ms" is more convenient than "2500us", as well as "1.5M" vs."1536K".
Unit tests should be updated too.
Code: https://github.com/roc-streaming/roc-toolkit/blob/develop/src/internal_modules/roc_core/parse_units.h Documentation: https://github.com/roc-streaming/roc-toolkit/blob/develop/docs/sphinx/manuals/roc_recv.rst#time-units
I'll do this while I wait on other things.
Thanks!
These two functions parses time and size units like "100ms" or "10M".
Currently, they allow only integer numbers, but it would be nice to support floats too. E.g. "2.5ms" is more convenient than "2500us", as well as "1.5M" vs."1536K".
Unit tests should be updated too.
Code: https://github.com/roc-streaming/roc-toolkit/blob/develop/src/internal_modules/roc_core/parse_units.h Documentation: https://github.com/roc-streaming/roc-toolkit/blob/develop/docs/sphinx/manuals/roc_recv.rst#time-units