Bug fix for SimpleTimer that didn't always convert elapsed times from milliseconds to seconds

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5055 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
depristo 2011-01-22 18:50:59 +00:00
parent ff61aeb762
commit c52d2d5f79
1 changed files with 1 additions and 4 deletions

View File

@ -46,10 +46,7 @@ public class SimpleTimer {
}
public double getElapsedTime() {
if ( running )
return (currentTime() - startTime) / 1000.0;
else
return elapsed;
return (running ? (currentTime() - startTime) : elapsed) / 1000.0;
}