@bbn/bbn 1.0.284 → 1.0.285

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.
@@ -9,8 +9,7 @@
9
9
  * @returns
10
10
  */
11
11
  export default function startChrono(name) {
12
- var now = new Date().getTime();
13
- var h1 = 3600 * 1000;
12
+ var now = bbn.fn.microtime();
14
13
  if (!this.constructor.chronos) {
15
14
  Object.defineProperty(this.constructor, 'chronos', {
16
15
  value: Object.create(null),
@@ -12,7 +12,7 @@
12
12
  */
13
13
  export default function stopChrono(name) {
14
14
  if (this.constructor.chronos[name || 'default']) {
15
- var now = new Date().getTime();
15
+ var now = bbn.fn.microtime();
16
16
  var diff = now - this.constructor.chronos[name || 'default'];
17
17
  delete this.constructor.chronos[name || 'default'];
18
18
  return diff;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.284",
3
+ "version": "1.0.285",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",