---
title: nrSetHarvestTimeEvents
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrsetharvesttimeevents
---

## Syntax

```js
  nrSetHarvestTimeEvents(nr as Object, time as Integer) as Void
```

## Description

Set harvest time for Events, the time the events are buffered before being sent to New Relic. Min value is 60.

## Arguments

| Arguments | Description             |
| --------- | ----------------------- |
| `nr`      | New Relic Agent object. |
| `time`    | Time in seconds.        |

## Return

Nothing.

## Example

```js
  	nrSetHarvestTimeEvents(m.nr, 60)
```
