Posted By

berndschiffer on 08/07/09


Tagged

textmate groovy closureexample


Versions (?)

Stefans Implementierung der Closure


 / Published in: Groovy
 

URL: http://berndschiffer.blogspot.com/2009/08/beispiel-fur-refactoring-von-beispiel.html

  1. def timeLogged (Closure c) {
  2. long start = - System.currentTimeMillis()
  3. c.call()
  4. println "duration in sec: " + (System.currentTimeMillis() + start) / 1000;
  5. }

Report this snippet  

You need to login to post a comment.