lammps-master/lib/atc/Utility.h
inline double tictoc()
  {
    double t_new = clock() / (double) CLOCKS_PER_SEC;
    static double t = t_new;
    double dt = t_new - t;
    t = t_new;
    return dt; 
  }
/** A simple Matlab like timing function */
A simple Matlab like timing function
A simple Matlab like timing function
inline double tictoc()
  {
    double t_new = clock() / (double) CLOCKS_PER_SEC;
    static double t = t_new;
    double dt = t_new - t;
    t = t_new;
    return dt; 
  }
inline double tictoc ( ) { double t_new = clock ( ) / ( double ) CLOCKS_PER_SEC ; static double t = t_new ; double dt = t_new - t ; t = t_new ; return dt ; }
A simple Matlab like timing function
A simple Matlab like timing function