Skip to content
Snippets Groups Projects
Commit 157d4ded authored by Philip Trettner's avatar Philip Trettner
Browse files

Only warn once on windows for unsupported timer usage

parent 05a2d5c1
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,8 @@ class CSystemTimer : public CProcessTimer
{
public:
CSystemTimer() : CProcessTimer() {
ACGL::Utils::error() << "No system timer present on this OS - fallback to process time" << std::endl;
static bool warned = false;
if ( !warned++ ) ACGL::Utils::error() << "No system timer present on this OS - fallback to process time" << std::endl;
}
};
......@@ -147,8 +148,9 @@ public:
class CThreadTimer : public CProcessTimer
{
public:
CThreadTimer() : CProcessTimer() {
ACGL::Utils::error() << "No thread timer present on this OS - fallback to process time" << std::endl;
CThreadTimer() : CProcessTimer() {
static bool warned = false;
if ( !warned++ ) ACGL::Utils::error() << "No thread timer present on this OS - fallback to process time" << std::endl;
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment