diff options
Diffstat (limited to 'node_modules/locutus/php/datetime/microtime.js.map')
-rw-r--r-- | node_modules/locutus/php/datetime/microtime.js.map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/datetime/microtime.js.map b/node_modules/locutus/php/datetime/microtime.js.map new file mode 100644 index 0000000..94ee8ce --- /dev/null +++ b/node_modules/locutus/php/datetime/microtime.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/php/datetime/microtime.js"],"names":["module","exports","microtime","getAsFloat","s","now","performance","timing","navigationStart","Math","round","Date","getTime"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,UAApB,EAAgC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,CAAJ;AACA,MAAIC,GAAJ;AACA,MAAI,OAAOC,WAAP,KAAuB,WAAvB,IAAsCA,YAAYD,GAAtD,EAA2D;AACzDA,UAAM,CAACC,YAAYD,GAAZ,KAAoBC,YAAYC,MAAZ,CAAmBC,eAAxC,IAA2D,GAAjE;AACA,QAAIL,UAAJ,EAAgB;AACd,aAAOE,GAAP;AACD;;AAED;AACAD,QAAIC,MAAM,CAAV;;AAEA,WAAQI,KAAKC,KAAL,CAAW,CAACL,MAAMD,CAAP,IAAY,GAAvB,IAA8B,GAA/B,GAAsC,GAAtC,GAA4CA,CAAnD;AACD,GAVD,MAUO;AACLC,UAAM,CAACM,KAAKN,GAAL,GAAWM,KAAKN,GAAL,EAAX,GAAwB,IAAIM,IAAJ,GAAWC,OAAX,EAAzB,IAAiD,GAAvD;AACA,QAAIT,UAAJ,EAAgB;AACd,aAAOE,GAAP;AACD;;AAED;AACAD,QAAIC,MAAM,CAAV;;AAEA,WAAQI,KAAKC,KAAL,CAAW,CAACL,MAAMD,CAAP,IAAY,GAAvB,IAA8B,GAA/B,GAAsC,GAAtC,GAA4CA,CAAnD;AACD;AACF,CAjCD","file":"microtime.js","sourcesContent":["module.exports = function microtime (getAsFloat) {\n // discuss at: http://locutus.io/php/microtime/\n // original by: Paulo Freitas\n // improved by: Dumitru Uzun (http://duzun.me)\n // example 1: var $timeStamp = microtime(true)\n // example 1: $timeStamp > 1000000000 && $timeStamp < 2000000000\n // returns 1: true\n // example 2: /^0\\.[0-9]{1,6} [0-9]{10,10}$/.test(microtime())\n // returns 2: true\n\n var s\n var now\n if (typeof performance !== 'undefined' && performance.now) {\n now = (performance.now() + performance.timing.navigationStart) / 1e3\n if (getAsFloat) {\n return now\n }\n\n // Math.round(now)\n s = now | 0\n\n return (Math.round((now - s) * 1e6) / 1e6) + ' ' + s\n } else {\n now = (Date.now ? Date.now() : new Date().getTime()) / 1e3\n if (getAsFloat) {\n return now\n }\n\n // Math.round(now)\n s = now | 0\n\n return (Math.round((now - s) * 1e3) / 1e3) + ' ' + s\n }\n}\n"]}
\ No newline at end of file |