class time_m::StopWatch

Overview

Class for measuring time in milliseconds [ms]. More…

#include <Time.h>

class StopWatch {
public:
    // construction

    StopWatch();

    // methods

    void Reset();
    double GetTime();
    std::string GetTimeStr();
};

Detailed Documentation

Class for measuring time in milliseconds [ms].

Construction

StopWatch()

Creates stopwatch and starts time measurement.

Methods

void Reset()

Resets time on stopwatch.

double GetTime()

Returns current watch time. [ms].

std::string GetTimeStr()

Returns current watch time as a text. [ms].