//SPDX-FileCopyrightText: 2024 Yury Gubich //SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include #include #include namespace TM { class Record { public: using Time = std::chrono::time_point; using Task = std::function; using ID = uint64_t; Record(ID id, const Task& task, Time time); ID id; Task task; Time time; bool operator > (const Record& other) const; bool operator < (const Record& other) const; }; }