#include <unistd.h>
#include <sys/time.h>
Go to the source code of this file.
|
static void | startTime () |
|
static void | endTime (const char *comment, const char *file, int lineno) |
|
#define REPORTTIME |
( |
|
comment) | |
endTime( comment, __FILE__, __LINE__ ) |
static void endTime |
( |
const char * |
comment, |
|
|
const char * |
file, |
|
|
int |
lineno |
|
) |
| |
|
inlinestatic |
Definition at line 17 of file profile.h.
References start.
20 gettimeofday( &end, NULL );
21 double time = end.tv_sec-
start.tv_sec+(end.tv_usec-
start.tv_usec)/1000000.0;
22 std::clog<<
file<<
"("<<comment<<
"):"<<lineno<<
": "<<time<<std::endl;
static void startTime |
( |
) | |
|
|
inlinestatic |
Definition at line 11 of file profile.h.
Referenced by Unit::AutoPilotToErrorMessage(), ChooseNavPoint(), ComputeJumpPointArrival(), endTime(), Hashtable< int, Logo, 257 >::hash(), nextElement(), nextElementRange(), stdext::hash< std::string >::operator()(), mmoc::ParseRemoteInput(), NavigationSystem::SystemIterator::Position(), Unit::querySphereNoRecurse(), Unit::rayCollide(), scanInString(), SetDirection(), SpriteStarVlist::SpriteStarVlist(), Audio::RenderableSource::startPlaying(), Audio::Source::startPlaying(), Audio::OpenALRenderableSource::startPlayingImpl(), Audio::OpenALRenderableStreamingSource::startPlayingImpl(), Audio::SimpleSource::startPlayingImpl(), startTime(), stringhash(), and vsExtensionSupported().