husk-scheme-3.20: R5RS Scheme interpreter, compiler, and library.
CopyrightJustin Ethier
LicenseMIT (see LICENSE in the distribution)
Maintainergithub.com/justinethier
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Language.Scheme.Plugins.CPUTime

Description

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 'examplesffiffi-cputime.scm' in the husk source tree for an example of how to call into this module from Scheme code.

Synopsis

Documentation

get :: [LispVal] -> IOThrowsError LispVal Source #

Wrapper for CPUTime.getCPUTime

precision :: [LispVal] -> IOThrowsError LispVal Source #

Wrapper for CPUTime.cpuTimePrecision