Class CTicTac

Class Documentation

class CTicTac

A high-performance stopwatch, with typical resolution of nanoseconds.

This always uses the system MONOTONIC clock, despite the setting in mrpt::Clock.

Note

The class is named after the Spanish equivalent of “Tic-Toc” ;-)

Public Functions

CTicTac() noexcept

Default constructor. Implicitly calls Tic()

void Tic() noexcept

Starts the stopwatch.

See also

Tac()

double Tac() const noexcept

Stops the stopwatch.

See also

Tic()

Returns:

Returns the ellapsed time in seconds.