GEDLIB  1.0
Public Member Functions | List of all members
ged::Timer Class Reference

A timer class that can be used by methods that support time limits. More...

#include <timer.hpp>

Public Member Functions

 Timer (double time_limit_in_sec)
 Constructs a timer for a given time limit. More...
 
bool expired () const
 Checks if the time limit has expired. More...
 

Detailed Description

A timer class that can be used by methods that support time limits.

Definition at line 38 of file timer.hpp.

Constructor & Destructor Documentation

◆ Timer()

ged::Timer::Timer ( double  time_limit_in_sec)

Constructs a timer for a given time limit.

Parameters
[in]time_limit_in_secThe time limit in seconds.

Definition at line 33 of file timer.ipp.

Member Function Documentation

◆ expired()

bool ged::Timer::expired ( ) const

Checks if the time limit has expired.

Returns
Boolean true if the time limit has expired and false otherwise.

Definition at line 39 of file timer.ipp.


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