"git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "6659c38dd5f5485b35b776d6ed10505f94e161ae"
Commit e485838b authored by Davis King's avatar Davis King
Browse files

Made the timing print() display which timing block number

is being printed in addition to the text name.
parent 4a08c318
...@@ -130,7 +130,7 @@ namespace dlib ...@@ -130,7 +130,7 @@ namespace dlib
string name; string name;
// Check if the name buffer is empty. Use the name it contains if it isn't. // Check if the name buffer is empty. Use the name it contains if it isn't.
if (name_buf(i,"")[0] != '\0') if (name_buf(i,"")[0] != '\0')
name = name_buf(i,""); name = cast_to_string(i) + ": " + name_buf(i,"");
else else
name = cast_to_string(i); name = cast_to_string(i);
max_name_length = std::max<unsigned long>(max_name_length, name.size()); max_name_length = std::max<unsigned long>(max_name_length, name.size());
...@@ -144,7 +144,7 @@ namespace dlib ...@@ -144,7 +144,7 @@ namespace dlib
string name; string name;
// Check if the name buffer is empty. Use the name it contains if it isn't. // Check if the name buffer is empty. Use the name it contains if it isn't.
if (name_buf(i,"")[0] != '\0') if (name_buf(i,"")[0] != '\0')
name = name_buf(i,""); name = cast_to_string(i) + ": " + name_buf(i,"");
else else
name = cast_to_string(i); name = cast_to_string(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment