renamed getRuntime to getAvgRuntime