Implementacja tabu search dla TSP
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Stopwatch.h 485B

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