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.

Stopwatch.cpp 337B

1234567891011121314151617181920212223
  1. #include "Stopwatch.h"
  2. Stopwatch::Stopwatch()
  3. {
  4. //ctor
  5. // Jan Potocki 2017-2019
  6. }
  7. void Stopwatch::start()
  8. {
  9. tstart = std::chrono::steady_clock::now();
  10. }
  11. void Stopwatch::stop()
  12. {
  13. tstop = std::chrono::steady_clock::now();
  14. measurement = tstop - tstart;
  15. }
  16. double Stopwatch::read()
  17. {
  18. return measurement.count();
  19. }