File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments