Print task run duration time

This commit is contained in:
SukkaW
2023-09-13 14:07:38 +08:00
parent 09c8b62f6a
commit 9f05105b29
17 changed files with 96 additions and 92 deletions

View File

@@ -4,6 +4,7 @@ const { processLine } = require('./lib/process-line');
const path = require('path');
const fse = require('fs-extra');
const fs = require('fs');
const { runner } = require('./lib/trace-runner');
const RESERVED_IPV4_CIDR = [
'0.0.0.0/8',
@@ -23,7 +24,7 @@ const RESERVED_IPV4_CIDR = [
'240.0.0.0/4'
];
(async () => {
runner(__filename, async () => {
const { exclude } = await import('cidr-tools-wasm');
/** @type {Set<string>} */
@@ -46,4 +47,4 @@ const RESERVED_IPV4_CIDR = [
path.resolve(__dirname, '../List/internal/reversed-chn-cidr.txt'),
`${reversedCidr.join('\n')}\n`
);
})();
});