コード例 #1
0
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;
}
コード例 #2
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;
    }
}
コード例 #3
0
ファイル: test_timing.c プロジェクト: dillonrooney/3body
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();

}
コード例 #4
0
ファイル: common.hpp プロジェクト: dengchengcheng/laser_slam
 double takeRealTime() { takeTime(); return getRealTime(); }