Add gettime() routine to test utils
authorDmitri Vorobiev <dmitri.vorobiev@movial.com>
Fri, 17 Sep 2010 14:52:21 +0000 (17:52 +0300)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 21 Sep 2010 12:50:17 +0000 (08:50 -0400)
commitcab3261c0da6e833d803a7f3ccab600adca7abe1
tree2b45ad7958ef2fd7068b0e2d83657af005f1f071
parentfd3c87d460a6d1803880d17af416cce344a086c4
Add gettime() routine to test utils

Impending benchmark code will need a function to get current time
in seconds, and this patch introduces such routine. We try to use
the POSIX gettimeofday() function when available, and fall back to
clock() when not.
configure.ac
test/utils.c
test/utils.h