check_runtime function

Calculate Run-time Statistics