Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import groovy.time.*
- def startTime = new Date()
- sleep(200)
- def endTime = new Date()
- use (TimeCategory) {
- TimeDuration duration = endTime - startTime
- println "Milliseconds duration: ${duration.millis}"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement