Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Leibner
dune-common
Commits
c33965a6
Commit
c33965a6
authored
12 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
warn about Timer not returning wall-time for multi-threaded code
[[Imported from SVN: r7095]]
parent
61dec97d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/timer.hh
+5
-0
5 additions, 0 deletions
dune/common/timer.hh
with
5 additions
and
0 deletions
dune/common/timer.hh
+
5
−
0
View file @
c33965a6
...
...
@@ -41,6 +41,11 @@ namespace Dune {
The class is basically a wrapper for the libc-function getrusage()
\warning In a multi-threading situation, this class does NOT return wall-time!
Instead, the run time for all threads will be added up.
For example, if you have four threads running in parallel taking one second each,
then the Timer class will return an elapsed time of four seconds.
*/
class
Timer
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment