Lines Matching refs:time_ns
135 static inline double computeAverage(uint64_t time_ns, size_t size, size_t copies) { in computeAverage() argument
136 return ((size/1024.0) * copies) / ((double)time_ns/NS_PER_SEC); in computeAverage()
151 static inline void printIter(uint64_t time_ns, const char *name, size_t size, size_t copies, double… in printIter() argument
153 name, copies, size, (double)time_ns/NS_PER_SEC, avg/1024.0); in printIter()
181 static inline double computeColdAverage(uint64_t time_ns, size_t size, size_t copies, size_t num_bu… in computeColdAverage() argument
182 return ((size/1024.0) * copies * num_buffers) / ((double)time_ns/NS_PER_SEC); in computeColdAverage()
185 static void inline printColdIter(uint64_t time_ns, const char *name, size_t size, size_t copies, si… in printColdIter() argument
187 name, copies, num_buffers, size, (double)time_ns/NS_PER_SEC, avg/1024.0); in printColdIter()
199 uint64_t time_ns; \
206 time_ns = nanoTime(); \
208 time_ns = nanoTime() - time_ns; \
235 computeAverage(time_ns, size, copies), \
236 printIter(time_ns, name, size, copies, avg), \
238 printSummary(time_ns, name, size, copies, running_avg, \
262 computeColdAverage(time_ns, size, copies, num_buffers), \
263 printColdIter(time_ns, name, size, copies, num_buffers, avg), \
264 printColdSummary(time_ns, name, size, copies, num_buffers, \
384 (double)time_ns/NS_PER_SEC, in benchmarkSleep()