Files
oak-editor/app/common/jobtime.cpp
T
itsmattkc 310fd3541a various: greatly simplified job times
Hopefully this doesn't break everything
2021-07-11 23:33:21 -07:00

31 lines
381 B
C++

#include "jobtime.h"
#include <QMutex>
namespace olive {
uint64_t job_time_index = 0;
QMutex job_time_mutex;
JobTime::JobTime()
{
Acquire();
}
void JobTime::Acquire()
{
job_time_mutex.lock();
value_ = job_time_index;
job_time_index++;
job_time_mutex.unlock();
}
}
QDebug operator<<(QDebug debug, const olive::JobTime& r)
{
return debug.space() << r.value();
}