jaraco / tempora

MIT License
20 stars 5 forks source link

Add support for parsing timedeltas from timeit results #17

Closed jaraco closed 3 years ago

jaraco commented 3 years ago

In python/importlib_metadata#324, I'm seeking to write a parser for timeit results. Timeit emits its results with things like "300 ms" or "300 ns". To support parsing those outputs, tempora could enhance parse_timedelta to support that mode.

I did search around (found SO-4628122) and couldn't find any existing library other than maybe the parser in Django.