mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Remove doc strings from cli/js TS files (#4329)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
This commit is contained in:
parent
3ac642c183
commit
e435c2be15
87 changed files with 0 additions and 2025 deletions
|
@ -2,13 +2,6 @@
|
|||
import { now as opNow } from "../ops/timers.ts";
|
||||
|
||||
export class Performance {
|
||||
/** Returns a current time from Deno's start in milliseconds.
|
||||
*
|
||||
* Use the flag --allow-hrtime return a precise value.
|
||||
*
|
||||
* const t = performance.now();
|
||||
* console.log(`${t} ms since start!`);
|
||||
*/
|
||||
now(): number {
|
||||
const res = opNow();
|
||||
return res.seconds * 1e3 + res.subsecNanos / 1e6;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue