Package: java.util

## [Java] Class Timer

- java.util.Timer

-     public class Timer
      extends Object

  GDK enhancements for Timer.

  displayName:
    Timer
  receiverFqcn:
    java.util.Timer

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public TimerTask` | `runAfter(int delay, Closure closure)` Allows a simple syntax for using timers.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `addShutdownHook, any, any, asBoolean, asType, collect, collect, collect, dump, each, eachMatch, eachMatch, eachWithIndex, every, every, find, find, findAll, findAll, findIndexOf, findIndexOf, findIndexValues, findIndexValues, findLastIndexOf, findLastIndexOf, findResult, findResult, findResult, findResult, getAt, getMetaClass, getMetaPropertyValues, getProperties, grep, grep, hasProperty, identity, inject, inject, inspect, invokeMethod, is, isCase, isNotCase, iterator, metaClass, print, print, printf, printf, println, println, println, putAt, respondsTo, respondsTo, setMetaClass, sleep, sleep, split, sprintf, sprintf, stream, tap, toString, use, use, use, with, with, withCloseable, withCloseable, withMethodClosure, withStream, withStream, withTraits`

- - ### Method Detail

    - #### public TimerTask runAfter(int delay, Closure closure)

      Allows a simple syntax for using timers. This timer will execute the given closure after the given delay.

      Parameters:
        `delay` - the delay in milliseconds before running the closure code
        `closure` - the closure to invoke
      Returns:
        The timer task which has been scheduled.
      Since:
        1.5.0