AsmGrader 0.0.0
Loading...
Searching...
No Matches
timespec_operator_eq.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <ctime>
4
5// Implementing operator== for std::timespec so that the SyscallArg variant is comparable
6constexpr bool operator==(const std::timespec& lhs, const std::timespec& rhs) {
7 return lhs.tv_sec == rhs.tv_sec && lhs.tv_nsec == rhs.tv_nsec;
8}
constexpr bool operator==(const std::timespec &lhs, const std::timespec &rhs)
Definition timespec_operator_eq.hpp:6