mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 21:46:48 +00:00

PR-URL: https://github.com/nodejs/node/pull/21256 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
15 lines
309 B
JavaScript
15 lines
309 B
JavaScript
'use strict';
|
|
|
|
// Tests that process.hrtime.bigint() works.
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
const start = process.hrtime.bigint();
|
|
assert.strictEqual(typeof start, 'bigint');
|
|
|
|
const end = process.hrtime.bigint();
|
|
assert.strictEqual(typeof end, 'bigint');
|
|
|
|
assert(end - start >= 0n);
|