Add utility for measuring delay