Added timed or manual control for run duration.

Task @T70 : Added a configuration parameter "run_time", which is
the desired run duration in seconds. If zero, it means run until
manually canceled by the user. If undefined, the default run is
one second. Next up is the output writer for the simulation.