added calculation of dead time in GUI