Re: [PATCH v15 02/12] util/cutils: Add qemu_strtotime_ns()

2019-11-07 Thread Eduardo Habkost
On Thu, Nov 07, 2019 at 03:45:01PM +0800, Tao Xu wrote: > To convert strings with time suffixes to numbers, support time unit are > "ns" for nanosecond, "us" for microsecond, "ms" for millisecond or "s" > for second. Add test for qemu_strtotime_ns, test the input of basic, > time suffixes, float, i

[PATCH v15 02/12] util/cutils: Add qemu_strtotime_ns()

2019-11-06 Thread Tao Xu
To convert strings with time suffixes to numbers, support time unit are "ns" for nanosecond, "us" for microsecond, "ms" for millisecond or "s" for second. Add test for qemu_strtotime_ns, test the input of basic, time suffixes, float, invaild, trailing and overflow. Signed-off-by: Tao Xu --- Chan