KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS::TIME_LIMIT Class Reference

#include <time_limit.h>

Public Member Functions

 TIME_LIMIT (int aMilliseconds=0)
 
 ~TIME_LIMIT ()
 
bool Expired () const
 
void Restart ()
 
void Set (int aMilliseconds)
 
int Get () const
 

Private Attributes

int m_limitMs
 
int64_t m_startTics
 

Detailed Description

Definition at line 29 of file time_limit.h.

Constructor & Destructor Documentation

◆ TIME_LIMIT()

PNS::TIME_LIMIT::TIME_LIMIT ( int  aMilliseconds = 0)

Definition at line 28 of file time_limit.cpp.

References Restart().

◆ ~TIME_LIMIT()

PNS::TIME_LIMIT::~TIME_LIMIT ( )

Definition at line 35 of file time_limit.cpp.

Member Function Documentation

◆ Expired()

bool PNS::TIME_LIMIT::Expired ( ) const

Definition at line 39 of file time_limit.cpp.

References m_limitMs, and m_startTics.

Referenced by PNS::SHOVE::shoveMainLoop().

◆ Get()

int PNS::TIME_LIMIT::Get ( ) const
inline

Definition at line 39 of file time_limit.h.

References m_limitMs.

Referenced by PNS::ROUTING_SETTINGS::ROUTING_SETTINGS().

◆ Restart()

void PNS::TIME_LIMIT::Restart ( )

Definition at line 45 of file time_limit.cpp.

References m_startTics.

Referenced by PNS::SHOVE::shoveMainLoop(), and TIME_LIMIT().

◆ Set()

void PNS::TIME_LIMIT::Set ( int  aMilliseconds)

Definition at line 51 of file time_limit.cpp.

References m_limitMs.

Referenced by PNS::ROUTING_SETTINGS::ROUTING_SETTINGS().

Member Data Documentation

◆ m_limitMs

int PNS::TIME_LIMIT::m_limitMs
private

Definition at line 42 of file time_limit.h.

Referenced by Expired(), Get(), and Set().

◆ m_startTics

int64_t PNS::TIME_LIMIT::m_startTics
private

Definition at line 43 of file time_limit.h.

Referenced by Expired(), and Restart().


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