# Timer Utility

## timer\_util.getTimer()

Returns a Timer Object with methods

| Name  | Parameters | Type    | Description                                                                              |
| ----- | ---------- | ------- | ---------------------------------------------------------------------------------------- |
| delay | Long       | boolean | Returns true if the amount of milliseconds you specified has passed since the last reset |
| reset | None       | void    | Resets the timer                                                                         |

```javascript
// will print "foo" every second (1000 ms)
var timer = timer_util.getTimer();
if(timer.delay(1000){
    print("foo")
    timer.reset();
}
```
