Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Stella
Commits
d5d9618d
Commit
d5d9618d
authored
Dec 15, 2018
by
Christian Speckner
Browse files
Use actual time since the current log window started for log messages.
parent
5b0b8cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/common/StaggeredLogger.cxx
View file @
d5d9618d
...
...
@@ -87,12 +87,16 @@ void StaggeredLogger::_log()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void
StaggeredLogger
::
logLine
()
{
high_resolution_clock
::
time_point
now
=
high_resolution_clock
::
now
();
Int64
millisecondsSinceLastLogEvent
=
duration_cast
<
duration
<
Int64
,
std
::
milli
>>
(
now
-
myCurrentIntervalStartTimestamp
).
count
();
stringstream
ss
;
ss
<<
currentTimestamp
()
<<
": "
<<
myMessage
<<
" ("
<<
myCurrentEventCount
<<
" times in "
<<
m
yCurrentIntervalSize
<<
" milliseconds"
<<
m
illisecondsSinceLastLogEvent
<<
" milliseconds"
<<
")"
;
myLogger
(
ss
.
str
());
...
...
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