Skip to content

Instantly share code, notes, and snippets.

@luiszimmermann
Last active October 18, 2018 19:17
Show Gist options
  • Save luiszimmermann/c9948678230a719a2e1d0b029a37e611 to your computer and use it in GitHub Desktop.
Save luiszimmermann/c9948678230a719a2e1d0b029a37e611 to your computer and use it in GitHub Desktop.

Revisions

  1. luiszimmermann revised this gist Oct 18, 2018. No changes.
  2. luiszimmermann revised this gist Oct 18, 2018. 1 changed file with 6 additions and 8 deletions.
    14 changes: 6 additions & 8 deletions grails-stopwatch.groovy
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,11 @@
    import org.grails.core.util.StopWatch

    class IntercomManager {
    public void test() {
    StopWatch stopWatch = new StopWatch("teste")
    stopWatch.start("teste")

    //CODE

    stopWatch.stop()
    println stopWatch.shortSummary()
    public void test() {
    StopWatch stopWatch = new StopWatch("teste")
    stopWatch.start("teste")
    //CODE
    stopWatch.stop()
    println stopWatch.shortSummary()
    }
    }
  3. luiszimmermann revised this gist Oct 18, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion grails-stopwatch.groovy
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ import org.grails.core.util.StopWatch
    class IntercomManager {
    public void test() {
    StopWatch stopWatch = new StopWatch("teste")
    stopWatch.start("teste")
    stopWatch.start("teste")

    //CODE

  4. luiszimmermann created this gist Oct 18, 2018.
    13 changes: 13 additions & 0 deletions grails-stopwatch.groovy
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    import org.grails.core.util.StopWatch

    class IntercomManager {
    public void test() {
    StopWatch stopWatch = new StopWatch("teste")
    stopWatch.start("teste")

    //CODE

    stopWatch.stop()
    println stopWatch.shortSummary()
    }
    }