# Response Times

The data returned from your carter agent contains a response time. `carter-js` contains two utility functions which allow you to retrieve this information in a couple of ways.

* `Carter.lastResponseTime()` returns the response time of the latest interaction.
* `Carter.averageResponseTime(minutes)` returns your agent's average response time over a given number of minutes. `minutes` is an optional argument, if not given then the function will return the average response time across the entire stored history.

```javascript
// already created a carter object called carter

const lastResponseTime = carter.lastResponseTime()
const lastTenAverage = carter.averageResponseTime(10)
```
