wt-status: simplify performance measurement by using getnanotime()
commit132d41e69a460f1bb72ba9eb41c513c42d9a8532
authorKarsten Blees <karsten.blees@gmail.com>
Sat, 12 Jul 2014 00:07:36 +0000 (12 02:07 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jul 2014 04:25:21 +0000 (13 21:25 -0700)
tree524ff5ec7ba092027d34f188cf93648b80c4078b
parent578da0391a7958510b960eaf1ef30d13e791554e
wt-status: simplify performance measurement by using getnanotime()

Calculating duration from a single uint64_t is simpler than from a struct
timeval. Change performance measurement for 'advice.statusuoption' from
gettimeofday() to getnanotime().

Also initialize t_begin to prevent uninitialized variable warning.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c