Fixed issues with statistics calculations: elapsed time