aboutsummaryrefslogtreecommitdiff
path: root/src/View/Time.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/View/Time.elm')
-rw-r--r--src/View/Time.elm10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/View/Time.elm b/src/View/Time.elm
new file mode 100644
index 0000000..363a0b6
--- /dev/null
+++ b/src/View/Time.elm
@@ -0,0 +1,10 @@
+module View.Time
+ ( timeView
+ ) where
+
+import Time (Time)
+
+timeView : Time -> String
+timeView time =
+ let s = truncate (time / 1000)
+ in (toString s) ++ " seconds"