Portability | portable |
---|---|
Stability | experimental |
Maintainer | github.com/justinethier |
Safe Haskell | Safe-Inferred |
This module wraps System.CPUTime so that it can be used directly by Scheme code.
More importantly, it serves as an example of how to wrap existing Haskell code so that it can be loaded and called by husk.
See 'examples/ffi/ffi-cputime.scm' in the husk source tree for an example of how to call into this module from Scheme code.
- get :: [LispVal] -> IOThrowsError LispVal
- precision :: [LispVal] -> IOThrowsError LispVal
Documentation
get :: [LispVal] -> IOThrowsError LispValSource
Wrapper for CPUTime.getCPUTime
precision :: [LispVal] -> IOThrowsError LispValSource
Wrapper for CPUTime.cpuTimePrecision