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.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. }