title: Debug spring mvc view rendering time
body: <p>I am currently using Spring MVC 3.x,
  and using the freemarker view resolver.</p>
  
  <p>Recently i have been wondering about the execution time that it takes for a view to translate into html before getting sent back as a response. I would like to do tunings if things are slow in this area, which is why i need some numbers.</p>
  
  <p>In plain freemarker mode, i can actually do the simple System.currentTimeMillis() between these to find out the execution time :</p>
  
  <pre><code>long start = System.currentTimeMillis();
  // this could be slow or fast depending on the caching used
  Template temp = cfg.getTemplate(ftlName);
  ...
  temp.process(model, myWriter); // depends on the writer
  System.out.printf("done in %s ms", System.currentTimeMillis() - start);
  </code></pre>
  
  <p>But how do i do this when with spring mvc's freemaker view rendering ?</p>