function compute deadtime three ways