blob: e5ce40a994d81554f4a2c006db19379dc771c7e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
'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);
|