summaryrefslogtreecommitdiff
path: root/compat/precompose_utf8.c
diff options
context:
space:
mode:
authorLibravatar Karsten Blees <karsten.blees@gmail.com>2014-07-12 02:08:11 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-07-13 21:25:21 -0700
commit83d26fa724ef2efbeb332fa3dc92b00c0e579f28 (patch)
treee476793bdf739705a3c01533dc01b678fae1fcba /compat/precompose_utf8.c
parentwt-status: simplify performance measurement by using getnanotime() (diff)
downloadtgif-83d26fa724ef2efbeb332fa3dc92b00c0e579f28.tar.xz
progress: simplify performance measurement by using getnanotime()
Calculating duration from a single uint64_t is simpler than from a struct timeval. Change throughput measurement from gettimeofday() to getnanotime(). Also calculate misec only if needed, and change integer division to integer multiplication + shift, which should be slightly faster. Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/precompose_utf8.c')
0 files changed, 0 insertions, 0 deletions