@oino-ts/common 0.16.0 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,6 +32,13 @@ class OINOBenchmark {
|
|
|
32
32
|
OINOBenchmark._instance = instance;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Get active benchmarking instance.
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
static getInstance() {
|
|
40
|
+
return OINOBenchmark._instance;
|
|
41
|
+
}
|
|
35
42
|
/**
|
|
36
43
|
* Reset benchmark data (but not what is enabled).
|
|
37
44
|
*
|
|
@@ -29,6 +29,13 @@ export class OINOBenchmark {
|
|
|
29
29
|
OINOBenchmark._instance = instance;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Get active benchmarking instance.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
static getInstance() {
|
|
37
|
+
return OINOBenchmark._instance;
|
|
38
|
+
}
|
|
32
39
|
/**
|
|
33
40
|
* Reset benchmark data (but not what is enabled).
|
|
34
41
|
*
|
|
@@ -18,6 +18,11 @@ export declare abstract class OINOBenchmark {
|
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
static setInstance(instance: OINOBenchmark): void;
|
|
21
|
+
/**
|
|
22
|
+
* Get active benchmarking instance.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
static getInstance(): OINOBenchmark;
|
|
21
26
|
protected abstract _reset(): void;
|
|
22
27
|
/**
|
|
23
28
|
* Reset benchmark data (but not what is enabled).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oino-ts/common",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "OINO TS package for common classes.",
|
|
5
5
|
"author": "Matias Kiviniemi (pragmatta)",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@oino-ts/types": "0.16.
|
|
22
|
+
"@oino-ts/types": "0.16.2",
|
|
23
23
|
"@types/node": "^22.0.0",
|
|
24
24
|
"typescript": "~5.9.0"
|
|
25
25
|
},
|
package/src/OINOBenchmark.ts
CHANGED