Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
StopWatch.h
Go to the documentation of this file.
1#pragma once
2#include <chrono>
3#include <iostream>
4namespace fishnet::util{
10{
11private:
12 typedef std::chrono::high_resolution_clock clock;
13 std::chrono::time_point<std::chrono::system_clock> start,end;
14 std::chrono::duration<double> duration;
15 std::string task;
16 bool stopped = false;
17public:
18 StopWatch();
19 StopWatch(const std::string & task);
20 double stop();
21 void stopAndPrint();
22 void reset();
23 ~StopWatch();
24};
25}
StopWatch class to track execution time of a task. Time can be tracked explicitly (....
Definition StopWatch.h:10
double stop()
Definition StopWatch.cpp:13
void reset()
Definition StopWatch.cpp:29
~StopWatch()
Definition StopWatch.cpp:34
void stopAndPrint()
Definition StopWatch.cpp:20
StopWatch()
Definition StopWatch.cpp:5
Definition AlternativeKeyMap.hpp:4