diff --git a/index.html b/index.html
index 04ee8ab..9069132 100644
--- a/index.html
+++ b/index.html
@@ -22,7 +22,7 @@
-
Want to know how old you are in nanoseconds? Go here
+
Want to know how old you are in millieseconds? Go here
What day was my birthday Jun 8, 2009?
June 8, 2009 was a Monday and it was the 159th day of the year 2009. It was the 23rd Monday of that year. The
next time you can reuse your old 2009 calendar will be in 2026. Both calendars will be exactly the same!
diff --git a/ms.html b/ms.html
index fffdd80..0801327 100644
--- a/ms.html
+++ b/ms.html
@@ -3,7 +3,7 @@
-
How old are you in nanoseconds?
+
How old are you in millieseconds?
diff --git a/ms.js b/ms.js
index 3eb13fa..080724d 100644
--- a/ms.js
+++ b/ms.js
@@ -2,11 +2,8 @@ function calculateYearsSince() {
const myDate = new Date('2009-06-08');
const diffInMs = Date.now() - myDate.getTime();
- const diffInNs = diffInMs * 1000000
- document.getElementById("number").innerText = diffInNs
+ document.getElementById("number").innerText = diffInMs
}
-while (true) {
- calculateYearsSince()
-}
\ No newline at end of file
+setInterval(calculateYearsSince, 0.1)
\ No newline at end of file