Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
Horizon Simulation Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
redmine-legacy
Horizon Simulation Framework
Commits
79b044ca
Commit
79b044ca
authored
Sep 08, 2012
by
Georg Kunz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[master] correctly printing measured runtimes to logfile
parent
68da4f12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/envir/envirbase.cc
src/envir/envirbase.cc
+2
-1
No files found.
src/envir/envirbase.cc
View file @
79b044ca
...
...
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <assert.h>
#include <fstream>
#include <iomanip>
#include <set>
#include "args.h"
...
...
@@ -1682,7 +1683,7 @@ void EnvirBase::stopClock()
std
::
string
filename
=
getConfig
()
->
getAsString
(
CFGID_WRITE_RUNTIME_TO_FILENAME
);
std
::
ofstream
outfile
;
outfile
.
open
(
filename
.
c_str
(),
std
::
ios
::
out
|
std
::
ios
::
app
);
outfile
<<
elapsedtime
.
tv_sec
<<
"."
<<
(
elapsedtime
.
tv_usec
/
1000
)
<<
endl
;
outfile
<<
elapsedtime
.
tv_sec
<<
"."
<<
std
::
setfill
(
'0'
)
<<
std
::
setw
(
6
)
<<
elapsedtime
.
tv_usec
<<
endl
;
outfile
.
close
();
}
}
...
...
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