summaryrefslogtreecommitdiffstats
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-08-01 11:27:31 (GMT)
committerGitHub <noreply@github.com>2020-08-01 11:27:31 (GMT)
commit8d96d4594188e4bcdffe8051a097bab8e40596f8 (patch)
tree905dd9b59c9c8004de3506a0b3799450a23c26eb /src/debug.cpp
parent88e70b5242b2446f33ab700e6d10e7f25ae2c349 (diff)
parent4a1c9f98bc5f9c82e81a694160fecc5a22f0e02c (diff)
downloadDoxygen-8d96d4594188e4bcdffe8051a097bab8e40596f8.zip
Doxygen-8d96d4594188e4bcdffe8051a097bab8e40596f8.tar.gz
Doxygen-8d96d4594188e4bcdffe8051a097bab8e40596f8.tar.bz2
Merge branch 'master' into feature/bug_xml_lang
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index ca3c1e9..f56ef3a 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -42,7 +42,8 @@ static std::map< std::string, Debug::DebugMask > s_labels =
{ "filteroutput", Debug::FilterOutput },
{ "lex", Debug::Lex },
{ "plantuml", Debug::Plantuml },
- { "fortranfixed2free", Debug::FortranFixed2Free }
+ { "fortranfixed2free", Debug::FortranFixed2Free },
+ { "cite", Debug::Cite }
};
//------------------------------------------------------------------------
@@ -114,11 +115,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 +132,8 @@ void Debug::startTimer()
g_runningTime.start();
}
-int Debug::elapsedTime()
+double Debug::elapsedTime()
{
- return g_runningTime.elapsedTimeMs();
+ return g_runningTime.elapsedTimeS();
}