title: How do you implement a timer that counts how long a user takes to submit a form on a page
body: <p>I recently started coding in php using the laravel framework and was trying to implement stuff into an existing page. Instead of tracking how long a user is viewing a page, I'm trying to track how long it takes the user to submit the form starting from when they first click on an input box.</p>
  
  <p>I have the form page created and was messing around with some basic JS scripts, but couldn't get it to work.</p>
  
  <pre><code>    &lt;form id="form" method="POST" action="/contact"&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-md-6  col-12"&gt;
                  &lt;input type="text" placeholder="Name  *" name="name" class="form-control input" required&gt;
                  &lt;br&gt;
                  &lt;input type="text" placeholder="Email *" name="email" class="form-control" required&gt;
                  &lt;br&gt;
                  &lt;input type="text" placeholder="Phone *" name="phone" class="form-control" required&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>
                      </p>
  
  <p>I want a timer to start counting up the moment a user clicks on one of the 3 input boxes (name, email, or phone) then stop counting once the user clicks submit.</p>