Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
e485838b
Commit
e485838b
authored
Jan 26, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the timing print() display which timing block number
is being printed in addition to the text name.
parent
4a08c318
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
timing.h
dlib/timing.h
+2
-2
No files found.
dlib/timing.h
View file @
e485838b
...
...
@@ -130,7 +130,7 @@ namespace dlib
string
name
;
// Check if the name buffer is empty. Use the name it contains if it isn't.
if
(
name_buf
(
i
,
""
)[
0
]
!=
'\0'
)
name
=
name_buf
(
i
,
""
);
name
=
cast_to_string
(
i
)
+
": "
+
name_buf
(
i
,
""
);
else
name
=
cast_to_string
(
i
);
max_name_length
=
std
::
max
<
unsigned
long
>
(
max_name_length
,
name
.
size
());
...
...
@@ -144,7 +144,7 @@ namespace dlib
string
name
;
// Check if the name buffer is empty. Use the name it contains if it isn't.
if
(
name_buf
(
i
,
""
)[
0
]
!=
'\0'
)
name
=
name_buf
(
i
,
""
);
name
=
cast_to_string
(
i
)
+
": "
+
name_buf
(
i
,
""
);
else
name
=
cast_to_string
(
i
);
...
...
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