How to get a program's running time in Haskell

后端 未结 4 455
臣服心动
臣服心动 2021-02-04 12:10

How can I go about getting a program\'s running time through system time functions in Haskell? I would like to measure the execution time of a whole program and/or an individual

4条回答
  •  难免孤独
    2021-02-04 12:39

    I'm not sure how accurate it is, but using :set +s in ghci will show the time and space used for subsequent computations.

提交回复
热议问题