关于tbb计时的问题
茶禅如水 2007-12-25 10:34:45 #include "tbb/tick_count.h"
tick_count start = tick_count::now();
..........
tick_count stop = tick_count::now();
printf("Time to compute room assignments is %f seconds.\n",
(stop - start).seconds());
tbb中提供了这样一个计时的类,应该对线程安全的,可移植性好,在多线程程序计时可以用到。
大家用的什么计时?