Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ACGL
acgl
Commits
157d4ded
Commit
157d4ded
authored
Mar 18, 2014
by
Philip Trettner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only warn once on windows for unsupported timer usage
parent
05a2d5c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
include/ACGL/Utils/PerformanceTimer.hh
include/ACGL/Utils/PerformanceTimer.hh
+5
-3
No files found.
include/ACGL/Utils/PerformanceTimer.hh
View file @
157d4ded
...
...
@@ -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
;
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment