How to get a program's running time in Haskell

后端 未结 4 452
臣服心动
臣服心动 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:49

    :set +s is really neat if use ghci, otherwise you can use Criterion.Measurement, see my answer to another question with example.

提交回复
热议问题