class mrpt::system::CTicTac

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

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

#include <mrpt/system/CTicTac.h>

class CTicTac
{
public:
    //
methods

    void Tic();
    double Tac();
};

Methods

void Tic()

Starts the stopwatch.

See also:

Tac()

double Tac()

Stops the stopwatch.

Returns:

Returns the ellapsed time in seconds.

See also:

Tic()