PHP and Javascript solutions to easy challenge #166 - Delta time