We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c559ba commit 51ad049Copy full SHA for 51ad049
lib/getElapsedTime.js
@@ -0,0 +1,7 @@
1
+export default function getElapsedTime(ios) {
2
+ const begin = new Date(ios);
3
+ const end = new Date();
4
+ const diff = end - begin;
5
+
6
+ return Math.floor(diff / 1000);
7
+}
0 commit comments