diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-03-15 15:51:46 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-03-16 00:10:06 +0100 |
commit | 8002d8a662d4db7cc8c833ac960179e05f1280ed (patch) | |
tree | 8501690a65b5953bb2f08aa69ad4bc4a41e4137e /hw/usb/dump.c | |
parent | 5a0107638d07e287001d69a786591162dc62e5e2 (diff) | |
download | qemu-8002d8a662d4db7cc8c833ac960179e05f1280ed.tar.gz |
net/dump: simplify timestamp calculation
The timestamp calculation in dump_receive is very unobvious now and
looks completely arbitrary. qemu_clock_get_us already returns micro-
seconds, so use that instead of manual calculating with nanoseconds.
While at it, express the private start_ts field in microseconds too
instead of seconds. This is supposed to yield a more accurate initial
timestamp (based on host clock). NOTE: this patch ignores the RTC of
the guest! Perhaps this part should be reverted.
Diffstat (limited to 'hw/usb/dump.c')
0 files changed, 0 insertions, 0 deletions