finalize metrics duration