Skip to content

Commit 5ca69ce

Browse files
committed
Elapsed time option added also to yarpmanager-console
1 parent 76ffdd7 commit 5ca69ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/yarpmanager-console/ymanager.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Options:\n\
9797
--silent Do not print the status messages (should be used with --application)\n\
9898
--exit Immediately exit after executing the commands (should be used with --application)\n\
9999
--from <conf> Configuration file name\n\
100+
--elapsed_time if present the time stamp for log messages will be relative to the GUI start time\n\
100101
--version Show current version\n\
101102
--help Show help\n"
102103

@@ -152,6 +153,13 @@ YConsoleManager::YConsoleManager(int argc, char* argv[]) : Manager()
152153
return;
153154
}
154155

156+
// I the option elapsed_time is not set, set the start time to 00:00:00 (For error and warning logging)
157+
if(!config.check("elapsed_time"))
158+
{
159+
yarp::manager::ClockStart& clock = yarp::manager::ClockStart::getInstance();
160+
clock.setStartTime("00:00:00");
161+
}
162+
155163
/**
156164
* preparing default options
157165
*/

0 commit comments

Comments
 (0)