Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ondrej Vysocky
meric
Commits
40ad8527
Commit
40ad8527
authored
Jan 18, 2019
by
Ondrej Vysocky
Browse files
ENH for each time measurement now also stores timestamp
#56
parent
c6a99818
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/store/infostore.cpp
View file @
40ad8527
...
...
@@ -43,8 +43,9 @@ void InfoStore::saveInterval(std::ofstream &ss, std::vector<size_t> &iStarts, si
double
duration
=
mutils
::
timeToDouble
(
_records
[
iEnd
].
time
-
_records
[
iStarts
.
back
()].
time
);
ss
<<
"# Job info"
<<
std
::
endl
<<
"JOB ID,"
<<
_jobID
<<
"."
<<
_stepID
<<
std
::
endl
<<
"Runtime of function [s],"
<<
duration
<<
std
::
endl
;
<<
"JOB ID,"
<<
_jobID
<<
"."
<<
_stepID
<<
std
::
endl
<<
"Runtime of function [s],"
<<
duration
<<
std
::
endl
<<
"Function start timestamp,"
<<
std
::
setprecision
(
15
)
<<
mutils
::
timeToDouble
(
_records
[
iStarts
.
back
()].
time
)
<<
std
::
endl
;
}
Write
Preview
Supports
Markdown
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