Activity Time

In the DataField compute(info) function I get info.startTime, info.timerTime and info.elapsedTime. Times for timerTime and elapsedTime track and startTime never changes. How can I start/stop the elapsed time when pressing the Enter button?