We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 902d183 commit cd8362aCopy full SHA for cd8362a
2 files changed
Tools/Install.hs
@@ -11,13 +11,15 @@ import System.Directory
11
import System.Environment
12
import System.FilePath
13
import System.Process
14
+import System.IO.TimeMilli
15
import MicroHs.Config
16
17
type CConf = [(Key, Value)]
18
19
20
main :: IO ()
21
main = do
22
+ start <- getTimeMilli
23
args <- getArgs
24
let flags = decodeArgs defaultFlags args
25
confText <- macroExpand flags <$> readFile (confFile flags)
@@ -33,6 +35,11 @@ main = do
33
35
34
36
install flags'
37
38
+ end <- getTimeMilli
39
+ let delta = (end - start) `quot` 100
40
+ (sec, tenths) = delta `quotRem` 10
41
+ putStrLn $ "Install time: " ++ show sec ++ "." ++ show tenths ++ "s"
42
+
43
install :: Flags -> IO ()
44
install flags = do
45
instBin flags
0 commit comments