I added timing functions, using c_time.  Look in common.h