On 10/20/19 6:11 AM, Tao Xu wrote:
To convert strings with time suffixes to numbers, support time unit are
"ps" for picosecond, "ns" for nanosecond, "us" for microsecond, "ms"
for millisecond or "s" for second.

I haven't yet reviewed the patch itself, but my off-hand observation:

picosecond is probably too narrow to ever be useful. POSIX interfaces only go down to nanoseconds, and when you start adding in vmexit delay times and such, we're lucky when we get anything better than microsecond accuracies. Supporting just three sub-second suffixes instead of four would slightly simplify the code, and not cost you any real precision.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to