Timecompare Class Reference

Comparator class for times. More...

#include <timeutil.h>

Public Member Functions

 Timecompare (struct timespec t)
 
bool preceeds (struct timespec t1)
 

Detailed Description

Comparator class for times.

Definition at line 81 of file timeutil.h.

Constructor & Destructor Documentation

◆ Timecompare()

Timecompare::Timecompare ( struct timespec  t)
inline

Definition at line 85 of file timeutil.h.

85: time(t) {}

Member Function Documentation

◆ preceeds()

bool Timecompare::preceeds ( struct timespec  t1)
inline

Definition at line 87 of file timeutil.h.

87 {
88 return timespec_cmp (&time, &t1);
89 }
bool timespec_cmp(const struct timespec *time1, const struct timespec *time2)
Function for comparing two times.
Definition timeutil.h:27

The documentation for this class was generated from the following file:

All rights reserved © 2002 - 2024 Isode Ltd.