Work around time() brokenness on Solaris.
On Solaris and OpenIndiana, time() goes backwards. It and gettimeofday() occasionally jump back to 1970 and return zero seconds — although the tv_usec field is still sane, bizarrely. CR7121035 in Solaris, https://www.illumos.org/issues/1871 in OpenIndiana. It seems that gethrtime() doesn't suffer the same problem, so let's use that instead of time() for now. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Showing with 44 additions and 1 deletion