contiki-os/contiki — pull request #179 by sdawans (2013-03-19 00:54:20+00:00)
Title: Use the .csc speedlimit parameter in headless cooja (-nogui) instead of forcing max speed

In headless mode, GUI.java overrides what is previously read from the .csc and forces the simulation to run at max speed by calling

sim.setSpeedLimit(null);

before

sim.startSimulation();

Although I understand the rationale behind this, there are cases where we need the headless mode to run at 100% speed and not full speed. For instance, I'm using headless COOJA to automate 6lbr regression tests, where running at real-time is important because the simulated motes need to run at the same pace as the router and the rest of the scripts.