void PerfMonitor::reset() { if (takeTime(m_sys_timeFirst, m_user_timeFirst)) { m_sys_timeLast = m_sys_timeFirst; m_user_timeLast = m_user_timeFirst; } else m_sys_timeLast = m_sys_timeFirst = m_user_timeLast = m_user_timeFirst = 0; }
void PerfMonitor::trace(const char * message, GLogLevelFlags logLevel) { (void)message;(void)logLevel; quint64 sys_time, user_time; if (takeTime(sys_time, user_time)) { // traceTime("-- ", message, logLevel, sys_time, user_time, m_sys_timeLast, m_user_timeLast); m_sys_timeLast = sys_time; m_user_timeLast = user_time; } }
int main(int argc, char** argv) { size = 10; rank = 0; MPI_Init(&argc,&argv); clOptions options; if(getCla(argc, argv, &options)) { //NOTHING TO WORRY ABOUT } else { printf("command line options failure\n"); return 1; } clock_start(); takeTime(10); clock_stop(argv[0], options, "words"); clock_start(); takeTime(100); clock_stop(argv[0], options, "x1000"); clock_start(); takeTime(1000); clock_stop(argv[0], options, "E6"); char * newtag; newtag = "hardcoded_string"; clock_start(); takeTime(100); clock_stop(argv[0], options, newtag); MPI_Finalize(); }
double takeRealTime() { takeTime(); return getRealTime(); }