OpenVPN 3 Core Library
Loading...
Searching...
No Matches
time.hpp File Reference
#include <chrono>
#include <cstdint>
#include <limits>
#include <openvpn/common/platform.hpp>
#include <openvpn/common/exception.hpp>
#include <openvpn/common/olong.hpp>
#include <openvpn/common/to_string.hpp>
#include <openvpn/common/numeric_cast.hpp>
#include <sys/time.h>
Include dependency graph for time.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openvpn::TimeType< T >
 
class  openvpn::TimeType< T >::Duration
 

Namespaces

namespace  openvpn
 

Macros

#define OPENVPN_DURATION_REL(OP)
 
#define OPENVPN_TIME_REL(OP)
 

Typedefs

typedef TimeType< oulongopenvpn::Time
 
typedef Timeopenvpn::TimePtr
 

Functions

 openvpn::OPENVPN_SIMPLE_EXCEPTION (get_time_error)
 

Macro Definition Documentation

◆ OPENVPN_DURATION_REL

#define OPENVPN_DURATION_REL (   OP)
Value:
bool operator OP(const Duration &d) const \
{ \
return duration_ OP d.duration_; \
}

Definition at line 225 of file time.hpp.

◆ OPENVPN_TIME_REL

#define OPENVPN_TIME_REL (   OP)
Value:
bool operator OP(const TimeType &t) const \
{ \
return time_ OP t.time_; \
}

Definition at line 390 of file time.hpp.