Dynamic measurement of the QT interval