Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
69ea3bd4
Commit
69ea3bd4
authored
Nov 02, 2017
by
Davis King
Browse files
Fixed timing print() so the output scales are set correctly.
parent
50de3da9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/timing.h
dlib/timing.h
+2
-2
No files found.
dlib/timing.h
View file @
69ea3bd4
...
...
@@ -155,9 +155,9 @@ namespace dlib
if
(
time
<
1000
)
cout
<<
" "
<<
name
<<
": "
<<
time
<<
" milliseconds"
<<
endl
;
else
if
(
time
<
1000
*
100
0
)
else
if
(
time
<
1000
*
6
0
)
cout
<<
" "
<<
name
<<
": "
<<
time
/
1000.0
<<
" seconds"
<<
endl
;
else
if
(
time
<
1000
*
100
0
*
60
)
else
if
(
time
<
1000
*
6
0
*
60
)
cout
<<
" "
<<
name
<<
": "
<<
time
/
1000.0
/
60.0
<<
" minutes"
<<
endl
;
else
cout
<<
" "
<<
name
<<
": "
<<
time
/
1000.0
/
60.0
/
60.0
<<
" hours"
<<
endl
;
...
...
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