@cloudcare/browser-core 1.1.1 → 1.1.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.
@@ -1834,7 +1834,7 @@ function clocksNow() {
1834
1834
  }
1835
1835
 
1836
1836
  function timeStampNow() {
1837
- return Date.now();
1837
+ return new Date().getTime();
1838
1838
  }
1839
1839
 
1840
1840
  function elapsed(start, end) {
@@ -1539,7 +1539,7 @@ export function clocksNow() {
1539
1539
  };
1540
1540
  }
1541
1541
  export function timeStampNow() {
1542
- return Date.now();
1542
+ return new Date().getTime();
1543
1543
  }
1544
1544
  export function elapsed(start, end) {
1545
1545
  return end - start;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcare/browser-core",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "scripts": {
@@ -20,5 +20,5 @@
20
20
  "author": "dataflux",
21
21
  "license": "MIT",
22
22
  "description": "DataFlux RUM Web 端数据指标监控",
23
- "gitHead": "6637896a7d66c35f8b37da75b14d234d049c79d5"
23
+ "gitHead": "5cbe53e30874a6c365a4e1e31353da8b02d0e0f3"
24
24
  }
@@ -1514,7 +1514,7 @@ export function clocksNow() {
1514
1514
  return { relative: relativeNow(), timeStamp: timeStampNow() }
1515
1515
  }
1516
1516
  export function timeStampNow() {
1517
- return Date.now()
1517
+ return new Date().getTime()
1518
1518
  }
1519
1519
  export function elapsed(start, end) {
1520
1520
  return end - start