summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-07-07 20:25:50 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-07-07 20:25:50 (GMT)
commit93dc8f81eaaf5523715a4d5867cbb55f46c3f647 (patch)
tree0a3b710e5971c9a7db31c4ad75ac15479c7fc650
parentb11f1c4ec6309627004fce83f366c498bdaab429 (diff)
parentcc46626a3b92cfc73ccbef72abed8c7ac32ffe4d (diff)
downloadDoxygen-93dc8f81eaaf5523715a4d5867cbb55f46c3f647.zip
Doxygen-93dc8f81eaaf5523715a4d5867cbb55f46c3f647.tar.gz
Doxygen-93dc8f81eaaf5523715a4d5867cbb55f46c3f647.tar.bz2
Merge branch 'master' of github.com:doxygen/doxygen
-rw-r--r--src/debug.cpp10
-rw-r--r--src/debug.h2
-rw-r--r--src/doxygen.cpp2
-rw-r--r--src/message.cpp2
4 files changed, 8 insertions, 8 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index ca3c1e9..6815b3b 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -114,11 +114,11 @@ class Timer
{
m_startTime = std::chrono::system_clock::now();
}
- int elapsedTimeMs()
+ double elapsedTimeS()
{
- return std::chrono::duration_cast<
+ return (std::chrono::duration_cast<
std::chrono::milliseconds>(
- std::chrono::system_clock::now() - m_startTime).count();
+ std::chrono::system_clock::now() - m_startTime).count()) / 1000.0;
}
private:
std::chrono::time_point<std::chrono::system_clock> m_startTime;
@@ -131,8 +131,8 @@ void Debug::startTimer()
g_runningTime.start();
}
-int Debug::elapsedTime()
+double Debug::elapsedTime()
{
- return g_runningTime.elapsedTimeMs();
+ return g_runningTime.elapsedTimeS();
}
diff --git a/src/debug.h b/src/debug.h
index 0c046f4..edc95e2 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -47,7 +47,7 @@ class Debug
static void setPriority(int p);
static void startTimer();
- static int elapsedTime();
+ static double elapsedTime();
private:
static DebugMask curMask;
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 3ed0e62..5ac1980 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -11584,7 +11584,7 @@ void generateOutput()
if (Debug::isFlagSet(Debug::Time))
{
msg("Total elapsed time: %.3f seconds\n(of which %.3f seconds waiting for external tools to finish)\n",
- ((double)Debug::elapsedTime())/1000.0,
+ ((double)Debug::elapsedTime()),
Portable::getSysElapsedTime()
);
g_s.print();
diff --git a/src/message.cpp b/src/message.cpp
index bbf578b..96c54a1 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -117,7 +117,7 @@ void msg(const char *fmt, ...)
#endif
if (Debug::isFlagSet(Debug::Time))
{
- printf("%.3f sec: ",((double)Debug::elapsedTime())/1000.0);
+ printf("%.3f sec: ",((double)Debug::elapsedTime()));
}
va_list args;
va_start(args, fmt);