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
13442ec1
Commit
13442ec1
authored
Nov 01, 2017
by
Davis King
Browse files
Fixed error in TIME_THIS(). It was still printing in seconds when it said
minutes in the output.
parent
858824e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/time_this.h
dlib/time_this.h
+1
-1
No files found.
dlib/time_this.h
View file @
13442ec1
...
...
@@ -17,7 +17,7 @@
using std::chrono::duration_cast; \
using std::chrono::duration; \
if (_tt_thetime >= std::chrono::minutes(1)) \
_tt_out << "\ntime: " << duration_cast<duration<double>>(_tt_thetime).count() << "min\n"; \
_tt_out << "\ntime: " << duration_cast<duration<double
,std::ratio<60>
>>(_tt_thetime).count() << "min\n"; \
else if (_tt_thetime >= std::chrono::seconds(1)) \
_tt_out << "\ntime: " << duration_cast<duration<double>>(_tt_thetime).count() << "sec\n"; \
else if (_tt_thetime >= std::chrono::milliseconds(1)) \
...
...
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