Definition at line 56 of file Timer.h.
References mCpuTime, mMode, and mStartTime.
Referenced by Impala::Samples::ActiveLearnEngine::ActiveLearnEngine(), Impala::Samples::ActiveLearnEngineQuids::ActiveLearnEngineQuids(), Impala::Core::ImageSet::Reporter::AllDoneFile(), Impala::Core::VideoSet::Reporter::AllDoneFrame(), Impala::Application::Video::DemoVideo(), Impala::Visualization::AppControlSrc::FpsReset(), Impala::Application::Video::FpsReset(), Impala::Core::VideoSet::ExportStills::HandleNewWalk(), Impala::Visualization::AppControlDoc::IpsReset(), Impala::Application::IDash::AppControlDossier::IpsReset(), Impala::Application::WindowTrecResult::ReadData(), Impala::Util::TimePlot::Start(), Impala::Util::ChannelServer::Start(), Impala::Util::TimeStats::StartTime(), Timer(), Impala::Core::Trec::SearchTopic::TopicSelect(), and Impala::Application::Videolympics::VidolviWindow::VidolviWindow().
00057 {
00058 #ifdef unix
00059 if (mMode == 0)
00060 {
00061 times(&mCpuTime);
00062 mUsrTime = mCpuTime.tms_utime;
00063 mSysTime = mCpuTime.tms_stime;
00064 }
00065 else
00066 {
00067 gettimeofday(&mStartTime, 0);
00068 }
00069 #else
00070 if (mMode == 0)
00071 {
00072 mCpuTime = clock();
00073 }
00074 else
00075 {
00076 LARGE_INTEGER countStruct;
00077 QueryPerformanceCounter(&countStruct);
00078 mStartTime = countStruct.HighPart;
00079 mStartTime = mStartTime << 32;
00080 mStartTime |= countStruct.LowPart;
00081 }
00082 #endif
00083 }