Skip to content

Commit

Permalink
add include <string> to fix compile error on non-Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Oct 30, 2023
1 parent 8587058 commit ff246be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Utils/StopWatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <chrono>
#include "utils_export.h"
#include <string>

namespace Utils
{
Expand All @@ -13,10 +14,13 @@ namespace Utils
void start();
void stop();

std::chrono::system_clock::duration getElapsedDuration() const;

long long getElapsedMilliseconds() const;
double getElapsedSeconds() const;
double getElapsedSeconds() const;

std::string getElapsedSecondsString(const std::string& suffix) const;
std::chrono::system_clock::duration getElapsedDuration() const;


//template<class D>
//std::chrono::system_clock::duration getElapsedDuration() const;
Expand Down

0 comments on commit ff246be

Please sign in to comment.