Implementacja tabu search dla TSP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122
  1. #ifndef STOPWATCH_H
  2. #define STOPWATCH_H
  3. #include <chrono>
  4. // Klasa do pomiaru czasu (wieloplatformowa)
  5. // Jan Potocki 2017-2019
  6. class Stopwatch
  7. {
  8. public:
  9. Stopwatch();
  10. void start();
  11. void stop();
  12. double read();
  13. protected:
  14. private:
  15. std::chrono::duration<double> measurement;
  16. std::chrono::time_point<std::chrono::steady_clock> tstart;
  17. std::chrono::time_point<std::chrono::steady_clock> tstop;
  18. };
  19. #endif // STOPWATCH_H