Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MODMED
modmedLog
Commits
3f143f87
Commit
3f143f87
authored
Apr 20, 2017
by
Manon Linder
Browse files
into nsecsElapsed method:
-> change number_nanoseconds into number_seconds
parent
e839eaaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
modmedLog/include/modmed/QtCore/qelapsedtimer.h
View file @
3f143f87
...
...
@@ -28,8 +28,8 @@ public:
int
nsecsElapsed
()
{
std
::
chrono
::
steady_clock
::
time_point
actual_point
=
std
::
chrono
::
steady_clock
::
now
();
std
::
chrono
::
duration
<
double
>
number_
nano
seconds
(
actual_point
-
m_timer_start
);
return
(
int
)(
number_
nano
seconds
.
count
()
*
1000000000
);
// CR secs or nsecs ?
std
::
chrono
::
duration
<
double
>
number_seconds
(
actual_point
-
m_timer_start
);
return
(
int
)(
number_seconds
.
count
()
*
1000000000
);
// CR secs or nsecs ?
}
};
...
...
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