Skip to content

Commit e99b391

Browse files
authored
Update README with latest code example
Update README with latest code example
1 parent 7dd0ad8 commit e99b391

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ Addon provides three API for measuring the performance of a given period.
3737
```js
3838
this.get('metrics').start('accounts_page');
3939
Ember.run.scheduleOnce('afterRender', () => {
40-
this.get('metrics').end('accounts_page');
41-
let accountsPageRenderDuration = this.get('metrics').measure('accounts_page');
40+
let accountsPageRenderDuration = this.get('metrics').end('accounts_page');
4241
console.log(accountsPageRenderDuration); // will return the duration to for this render performance in milliseconds.
4342
});
4443
```

0 commit comments

Comments
 (0)