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

63 lines
868 B
C++

#ifndef JOBTIME_H
#define JOBTIME_H
#include <QDebug>
#include <stdint.h>
namespace olive {
class JobTime
{
public:
JobTime();
void Acquire();
uint64_t value() const
{
return value_;
}
bool operator==(const JobTime &rhs) const
{
return value_ == rhs.value_;
}
bool operator!=(const JobTime &rhs) const
{
return value_ != rhs.value_;
}
bool operator<(const JobTime &rhs) const
{
return value_ < rhs.value_;
}
bool operator>(const JobTime &rhs) const
{
return value_ > rhs.value_;
}
bool operator<=(const JobTime &rhs) const
{
return value_ <= rhs.value_;
}
bool operator>=(const JobTime &rhs) const
{
return value_ >= rhs.value_;
}
private:
uint64_t value_;
};
}
QDebug operator<<(QDebug debug, const olive::JobTime& r);
Q_DECLARE_METATYPE(olive::JobTime)
#endif // JOBTIME_H