crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
crawlservpp::Timer::Simple Class Reference

A simple timer. More...

#include <Simple.hpp>

Construction

 Simple ()
 Constructor starting the timer. More...
 

Tick control

std::uint64_t tick ()
 Timer tick returning the number of milliseconds passed. More...
 
std::string tickStr ()
 Timer tick returning the number of milliseconds passed as string. More...
 

Reset

void clear ()
 Resets the internal state of the timer. More...
 

Internal state

std::chrono::steady_clock::time_point timePoint
 (Time) point of creation or last tick. More...
 

Detailed Description

A simple timer.

Starting from its creation, this timer counts the number of milliseconds until tick() or tickStr() is called.

The timer is restarted after each tick.

Constructor & Destructor Documentation

◆ Simple()

crawlservpp::Timer::Simple::Simple ( )
inline

Constructor starting the timer.

Member Function Documentation

◆ clear()

void crawlservpp::Timer::Simple::clear ( )
inline

Resets the internal state of the timer.

References timePoint.

Referenced by crawlservpp::Module::Analyzer::Algo::TopicModelling::resetAlgo().

◆ tick()

◆ tickStr()

Member Data Documentation

◆ timePoint

std::chrono::steady_clock::time_point crawlservpp::Timer::Simple::timePoint
protected

(Time) point of creation or last tick.

Referenced by clear(), tick(), and tickStr().


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