Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Count elapsed time of a phase via TraCI

Hi SUMO community,

I'm controlling traffic lights via TraCI, and want to know at every second what is my current phase and elapsed time of the phase.

For the current phase, it is easy to use getPhase(juntion), but what about the elapsed time, i.e. the number of seconds this current phase has been in effect?

Thanks,
Shuyi

Back to the top