_input called in outer loop only.
time updated in outer loop only.
Integer time (itime) introduced and updated in outer loop - maybe
useful for discrete events.
Integer time (itime) passed to _input.