getElapsedTime() in TREE.Clock returns whole running time and not elapsed time from previous start. (#9692)
* getElapsedTime() returns whole running time
getElapsedTime() function returns incorrect value after stop() and start(), It returns whole working time from first run.
I changes adde this.elapsedTime = 0 in stop() function, so after next start() we can get correct elapsed time from last start()
Perhaps it's incorrect and suggested changes need new function, so Clock.js will have two functions:
- first one will return whole running time (as it is now)
- second will return elapsed time from last start
* Update Clock.js