Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

timer-set

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timer-set - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

examples/col-group/main-col-group.js

@@ -37,3 +37,3 @@ /***************************************************************************************************

const ColGroup = require('./col-group');
const TimerSet = require('../../lib/timer-set'); //NB To use trapit as npm module: require('timer-set');
const TimerSet = require('timer-set');
const [INPUT_FILE, DELIM, COL] =

@@ -40,0 +40,0 @@ ['./examples/col-group/fantasy_premier_league_player_stats.csv', ',', 6];

{
"name": "timer-set",
"version": "1.0.4",
"version": "1.0.5",
"description": "Code timing class",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/BrenPatF/timer-set_nodejs#readme",

# timer-set
Facilitates code timing for instrumentation and other purposes, with very small footprint in both code and resource usage. Windows version.
Facilitates code timing for instrumentation and other purposes, with very small footprint in both code and resource usage. Tested on Unix and Windows.

@@ -35,3 +35,9 @@ ## Usage (extract from main-col-group.js)

```
To run the example from root (timer-set) folder:
### Unix
$ node examples/col-group/main-col-group
### Windows
$ node examples\col-group\main-col-group
## API

@@ -94,4 +100,6 @@ ```js

```
### Unit testing
### Unit testing
The npm package trapit is required to run the unit tests.
```
$ npm install trapit
$ npm test

@@ -105,2 +113,9 @@ ```

## Operating Systems
The package works on both Unix and Wndows and has been tested on:
### Windows
Windows 10, node v8.1.4 and node v10.6.0
### Unix
Oracle Linux Server 7.5 (via Virtualbox on Windows host), node v8.12.0
## See also

@@ -107,0 +122,0 @@ - [trapit (unit testing package)](https://github.com/BrenPatF/trapit_nodejs_tester)

@@ -36,3 +36,3 @@ /***************************************************************************************************

const Utils = require('../lib/utils');
const TimerSet = require('../lib/timer-set');
const TimerSet = require('timer-set');
const fs = require('fs');

@@ -39,0 +39,0 @@ const ROOT = './test/';

@@ -112,3 +112,3 @@ Unit Test Report: timer-set

1 LIKE /Timer[^]*Timer 1[^]*\[Timer timed[^]*\]/:
Timer set: Set 1, constructed at Wed Oct 10 2018 06:49:22, written at Wed Oct 10 2018 06:49:22
Timer set: Set 1, constructed at Wed Nov 07 2018 07:05:27, written at Wed Nov 07 2018 07:05:27
==============================================================================================

@@ -123,3 +123,3 @@ Timer Elapsed USR SYS Calls Ela/Call USR/Call SYS/Call

------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
[Timer timed (per call in ms): Elapsed: 0.16832, USR: 0.01856, SYS: 0.01980]
[Timer timed (per call in ms): Elapsed: 0.21782, USR: 0.00000, SYS: 0.01980]

@@ -180,8 +180,8 @@ } 0 failed of 1: SUCCESS

# Timer Name Elapsed Time User CPU Time System CPU Time #Calls
- ---------- -------------------- -------------------- -------------------- ------
1 Timer 1 IN [2000,3000]: 2046 IN [0,1000]: 269.5 IN [0,1000]: 54.5 2
2 Timer 2 IN [1000,3000]: 1023 IN [0,1000]: 136.625 IN [0,1000]: 17.625 1
3 (Other) IN [4000,5000]: 4092 IN [0,1000]: 527.5 IN [0,1000]: 78.25 1
4 Total IN [6000,8000]: 7161 IN [0,2000]: 933.625 IN [0,2000]: 150.375 4
# Timer Name Elapsed Time User CPU Time System CPU Time #Calls
- ---------- -------------------- -------------------- ------------------- ------
1 Timer 1 IN [2000,3000]: 2046 IN [0,1000]: 277.375 IN [0,1000]: 7.75 2
2 Timer 2 IN [1000,3000]: 1024 IN [0,1000]: 131 IN [0,1000]: 2 1
3 (Other) IN [4000,5000]: 4092 IN [0,1000]: 523.5 IN [0,1000]: 5.875 1
4 Total IN [6000,8000]: 7162 IN [0,2000]: 931.875 IN [0,2000]: 15.625 4

@@ -198,7 +198,7 @@ } 0 failed of 4: SUCCESS

2 ------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
3 LIKE /Timer 1.*/: Timer 1 2.05 0.27 0.05 2 1.02300 0.13475 0.02725
4 LIKE /Timer 2.*/: Timer 2 1.02 0.14 0.02 1 1.02300 0.13662 0.01762
5 LIKE /\(Other\).*/: (Other) 4.09 0.53 0.08 1 4.09200 0.52750 0.07825
3 LIKE /Timer 1.*/: Timer 1 2.05 0.28 0.01 2 1.02300 0.13869 0.00387
4 LIKE /Timer 2.*/: Timer 2 1.02 0.13 0.00 1 1.02400 0.13100 0.00200
5 LIKE /\(Other\).*/: (Other) 4.09 0.52 0.01 1 4.09200 0.52350 0.00588
6 ------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
7 LIKE /Total.*/: Total 7.16 0.93 0.15 4 1.79025 0.23341 0.03759
7 LIKE /Total.*/: Total 7.16 0.93 0.02 4 1.79050 0.23297 0.00391
8 ------- ---------- ---------- ---------- ---------- ------------- ------------- -------------

@@ -212,7 +212,7 @@

# Timer Name Elapsed Time User CPU Time System CPU Time #Calls
- ---------- -------------------- -------------------- -------------------- ------
1 Timer 1 IN [4000,5000]: 4092 IN [0,1000]: 527.375 IN [0,1000]: 64.625 2
2 (Other) IN [2000,3000]: 2105 IN [0,1000]: 271.5 IN [0,1000]: 56.5 1
3 Total IN [6000,7000]: 6197 IN [0,2000]: 798.875 IN [0,2000]: 121.125 3
# Timer Name Elapsed Time User CPU Time System CPU Time #Calls
- ---------- -------------------- -------------------- ------------------ ------
1 Timer 1 IN [4000,5000]: 4092 IN [0,1000]: 527.25 IN [0,1000]: 4 2
2 (Other) IN [2000,3000]: 2088 IN [0,1000]: 265.625 IN [0,1000]: 5.875 1
3 Total IN [6000,7000]: 6180 IN [0,2000]: 792.875 IN [0,2000]: 9.875 3

@@ -228,5 +228,5 @@ } 0 failed of 3: SUCCESS

# Elapsed Time User CPU Time System CPU Time
- ------------------------------- --------------------------------- ---------------
1 IN [0,0.5]: 0.15841584158415842 IN [0,0.05]: 0.018564356435643563 IN [0,0.05]: 0
# Elapsed Time User CPU Time System CPU Time
- ------------------------------ -------------- ---------------
1 IN [0,0.5]: 0.1188118811881188 IN [0,0.05]: 0 IN [0,0.05]: 0

@@ -241,3 +241,3 @@ } 0 failed of 1: SUCCESS

- ------------------------------------------------------------------------------------------------------------------------------------
1 LIKE /\[Timer timed \(per call in ms\): Elapsed: .*\]/: [Timer timed (per call in ms): Elapsed: 0.14851, USR: 0.01980, SYS: 0.00000]
1 LIKE /\[Timer timed \(per call in ms\): Elapsed: .*\]/: [Timer timed (per call in ms): Elapsed: 0.15842, USR: 0.01856, SYS: 0.01980]

@@ -253,13 +253,13 @@ } 0 failed of 1: SUCCESS

1 LIKE /Timer[^]*Timer 1[^]*\[Timer timed[^]*\]/:
Timer set: Set 1, constructed at Wed Oct 10 2018 06:49:22, written at Wed Oct 10 2018 06:49:29
Timer set: Set 1, constructed at Wed Nov 07 2018 07:05:27, written at Wed Nov 07 2018 07:05:34
==============================================================================================
Timer Elapsed USR SYS Calls Ela/Call USR/Call SYS/Call
------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
Timer 1 2.05 0.27 0.05 2 1.02300 0.13475 0.02725
Timer 2 1.02 0.14 0.02 1 1.02300 0.13662 0.01762
(Other) 4.09 0.53 0.08 1 4.09200 0.52750 0.07825
Timer 1 2.05 0.28 0.01 2 1.02300 0.13869 0.00387
Timer 2 1.02 0.13 0.00 1 1.02400 0.13100 0.00200
(Other) 4.09 0.52 0.01 1 4.09200 0.52350 0.00588
------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
Total 7.16 0.93 0.15 4 1.79025 0.23341 0.03759
Total 7.16 0.93 0.02 4 1.79050 0.23297 0.00391
------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
[Timer timed (per call in ms): Elapsed: 0.26733, USR: 0.00000, SYS: 0.05693]
[Timer timed (per call in ms): Elapsed: 0.12871, USR: 0.01856, SYS: 0.00000]

@@ -614,16 +614,16 @@ } 0 failed of 1: SUCCESS

# 1 Message, 2 Stack
- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Error, time_width + time_dp must be > 6, actual: 4 + 1
# 1 Message, 2 Stack
- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 Error, time_width + time_dp must be > 6, actual: 4 + 1
2 UNTESTED: Error: Error, time_width + time_dp must be > 6, actual: 4 + 1
at valWidths (C:\Users\Brend\OneDrive\Script\npm\timer-set\lib\timer-set.js:59:11)
at TimerSet.formatTimers (C:\Users\Brend\OneDrive\Script\npm\timer-set\lib\timer-set.js:182:5)
at purelyWrapUnit (C:\Users\Brend\OneDrive\Script\npm\timer-set\test\test-timer-set.js:96:44)
at Object.<anonymous> (C:\Users\Brend\OneDrive\Script\npm\timer-set\test\test-timer-set.js:157:20)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at valWidths (C:\Users\Brend_000\OneDrive\Script\npm\node_modules\timer-set\lib\timer-set.js:59:11)
at TimerSet.formatTimers (C:\Users\Brend_000\OneDrive\Script\npm\node_modules\timer-set\lib\timer-set.js:182:5)
at purelyWrapUnit (C:\Users\Brend_000\OneDrive\Script\npm\timer-set\test\test-timer-set.js:96:44)
at Object.<anonymous> (C:\Users\Brend_000\OneDrive\Script\npm\timer-set\test\test-timer-set.js:157:20)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)

@@ -630,0 +630,0 @@ } 0 failed of 2: SUCCESS

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc