Skip to content

Commit

Permalink
Update timestamp.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Dec 7, 2016
1 parent 5593d41 commit 962ca93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions date/timestamp.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ var time = new Date()
time.getTime() // => 1472153262516
time.getTime() // => 1472153262516
```

In the browser side, consider using [performance.now()](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now), which has better precision than Date.now() and always increases at a constant rate, independent of the system clock.

0 comments on commit 962ca93

Please sign in to comment.