Fix JobQueue to measure waiting and run times correctly

This commit is contained in:
Vinnie Falco
2013-10-01 12:22:38 -07:00
parent 2ac2fdfabd
commit 46d3ace6b7
5 changed files with 6 additions and 15 deletions

View File

@@ -86,6 +86,7 @@ bool Job::shouldCancel () const
void Job::doJob ()
{
m_loadEvent->start ();
m_loadEvent->reName (mName);
mJob (*this);
@@ -96,11 +97,6 @@ void Job::rename (std::string const& newName)
mName = newName;
}
LoadEvent& Job::peekEvent() const
{
return *m_loadEvent;
}
const char* Job::toString (JobType t)
{
switch (t)