From e99b3919784d54e93d91eeac13cb4a45045f540d Mon Sep 17 00:00:00 2001 From: Gokul Kathirvel Date: Sun, 16 Jul 2017 02:32:14 +0530 Subject: [PATCH] Update README with latest code example Update README with latest code example --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 87e5d19..fadd3b1 100644 --- a/README.md +++ b/README.md @@ -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. }); ```