adding elapsed-time timer