Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Dec 11, 2022
1 parent 3ff9b3b commit 29be7e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
/**
* Return the number of nanoseconds since the time origin.
*
* @example
* ```js
* const start = preciseNow()
* const end = preciseNow()
* const duration = end - start
* ```
*/
export default function preciseNow(): number

0 comments on commit 29be7e8

Please sign in to comment.