utils.h
inline double now() {
  struct timeval tv;
  gettimeofday(&tv, nullptr);
  return tv.tv_sec + 1e-6 * tv.tv_usec;
}
// get current time down to usec precision as a double
get current time down to usec precision as a double
get current time down to usec precision as a double
inline double now() {
  struct timeval tv;
  gettimeofday(&tv, nullptr);
  return tv.tv_sec + 1e-6 * tv.tv_usec;
}
inline double now ( ) { struct timeval tv ; gettimeofday ( & tv , nullptr ) ; return tv . tv_sec + 1e-6 * tv . tv_usec ; }
get current time down to usec precision as a double
get current time down to usec precision as a double