Socket
Socket
Sign inDemoInstall

timer-set

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

2

lib/timer-set.js

@@ -31,3 +31,3 @@ /***************************************************************************************************

const os = require('os');
const Utils = require('./Utils');
const Utils = require('./utils');
const [CALLS_WIDTH, TIME_WIDTH, TIME_DP, TIME_RATIO_DP] =

@@ -34,0 +34,0 @@ [10, 8, 2, 5];

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

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

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

1 LIKE /Timer[^]*Timer 1[^]*\[Timer timed[^]*\]/:
Timer set: Set 1, constructed at Thu Oct 04 2018 15:23:45, written at Thu Oct 04 2018 15:23:45
Timer set: Set 1, constructed at Wed Oct 10 2018 06:49:22, written at Wed Oct 10 2018 06:49:22
==============================================================================================

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

------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
[Timer timed (per call in ms): Elapsed: 0.26733, USR: 0.00000, SYS: 0.01856]
[Timer timed (per call in ms): Elapsed: 0.16832, USR: 0.01856, 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]: 328 IN [0,1000]: 70.375 2
2 Timer 2 IN [1000,3000]: 1023 IN [0,1000]: 146.625 IN [0,1000]: 33.125 1
3 (Other) IN [4000,5000]: 4092 IN [0,1000]: 535.125 IN [0,1000]: 78.5 1
4 Total IN [6000,8000]: 7161 IN [0,2000]: 1009.75 IN [0,2000]: 182 4
# 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

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

2 ------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
3 LIKE /Timer 1.*/: Timer 1 2.05 0.33 0.07 2 1.02300 0.16400 0.03519
4 LIKE /Timer 2.*/: Timer 2 1.02 0.15 0.03 1 1.02300 0.14663 0.03313
5 LIKE /\(Other\).*/: (Other) 4.09 0.54 0.08 1 4.09200 0.53512 0.07850
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
6 ------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
7 LIKE /Total.*/: Total 7.16 1.01 0.18 4 1.79025 0.25244 0.04550
7 LIKE /Total.*/: Total 7.16 0.93 0.15 4 1.79025 0.23341 0.03759
8 ------- ---------- ---------- ---------- ---------- ------------- ------------- -------------

@@ -214,5 +214,5 @@

- ---------- -------------------- -------------------- -------------------- ------
1 Timer 1 IN [4000,5000]: 4092 IN [0,1000]: 546.875 IN [0,1000]: 89.875 2
2 (Other) IN [2000,3000]: 2099 IN [0,1000]: 273.5 IN [0,1000]: 43.25 1
3 Total IN [6000,7000]: 6191 IN [0,2000]: 820.375 IN [0,2000]: 133.125 3
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

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

# Elapsed Time User CPU Time System CPU Time
- ------------------------------- -------------- ---------------------------------
1 IN [0,0.5]: 0.16831683168316833 IN [0,0.05]: 0 IN [0,0.05]: 0.039603960396039604
# 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

@@ -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.00000, SYS: 0.01980]
1 LIKE /\[Timer timed \(per call in ms\): Elapsed: .*\]/: [Timer timed (per call in ms): Elapsed: 0.14851, USR: 0.01980, SYS: 0.00000]

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

1 LIKE /Timer[^]*Timer 1[^]*\[Timer timed[^]*\]/:
Timer set: Set 1, constructed at Thu Oct 04 2018 15:23:45, written at Thu Oct 04 2018 15:23:52
Timer set: Set 1, constructed at Wed Oct 10 2018 06:49:22, written at Wed Oct 10 2018 06:49:29
==============================================================================================
Timer Elapsed USR SYS Calls Ela/Call USR/Call SYS/Call
------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
Timer 1 2.05 0.33 0.07 2 1.02300 0.16400 0.03519
Timer 2 1.02 0.15 0.03 1 1.02300 0.14663 0.03313
(Other) 4.09 0.54 0.08 1 4.09200 0.53512 0.07850
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
------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
Total 7.16 1.01 0.18 4 1.79025 0.25244 0.04550
Total 7.16 0.93 0.15 4 1.79025 0.23341 0.03759
------- ---------- ---------- ---------- ---------- ------------- ------------- -------------
[Timer timed (per call in ms): Elapsed: 0.19802, USR: 0.01980, SYS: 0.01856]
[Timer timed (per call in ms): Elapsed: 0.26733, USR: 0.00000, SYS: 0.05693]

@@ -620,4 +620,4 @@ } 0 failed of 1: SUCCESS

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:43)
at Object.<anonymous> (C:\Users\Brend\OneDrive\Script\npm\timer-set\test\test-timer-set.js:157:18)
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)

@@ -624,0 +624,0 @@ at Object.Module._extensions..js (module.js:580:10)

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc