getDelta method
Implementation
num getDelta() {
num diff = 0;
if (autoStart && !running) {
start();
return 0;
}
if (running) {
var newTime = now();
diff = (newTime - oldTime) / 1000;
oldTime = newTime;
elapsedTime += diff;
}
return diff;
}