Skip to content

Commit

Permalink
Update README with latest code example
Browse files Browse the repository at this point in the history
Update README with latest code example
  • Loading branch information
gokatz authored Jul 15, 2017
1 parent 7dd0ad8 commit e99b391
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ Addon provides three API for measuring the performance of a given period.
```js
this.get('metrics').start('accounts_page');
Ember.run.scheduleOnce('afterRender', () => {
this.get('metrics').end('accounts_page');
let accountsPageRenderDuration = this.get('metrics').measure('accounts_page');
let accountsPageRenderDuration = this.get('metrics').end('accounts_page');
console.log(accountsPageRenderDuration); // will return the duration to for this render performance in milliseconds.
});
```
Expand Down

0 comments on commit e99b391

Please sign in to comment.