title: Java display current time
body: <p>I have a code which shows me the current date and time when I run my application</p>
  
  <pre><code>DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
  Calendar cal = Calendar.getInstance();
  System.out.println(dateFormat.format(cal.getTime()));
  </code></pre>
  
  <p>Now it shows me: 2012/12/11 00:36:53 when I run it.</p>
  
  <p>But I want it to count the time during running it.</p>
  
  <p>So by example now when I run it on 00:37:53 it shows this time, but I want 00:37:53 at starting and I stop running it on 00:40:55 . I want that it shows me 00:37:53, 00:37:54, 00:37:55 and so on.</p>
  
  <p>Now how can I do this?</p>