Skip to content

skcho/ppx_timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ppx_timer

Ppx for timer

Install

opam pin add ppx_timer https://github.com/skcho/ppx_timer.git

Example

[%timer exp] is expanded to

Timer.start_here <pos:Lexing.position>;
let v = exp in
Timer.stop ();
v

to calculate the evaluation time of exp. See test for examples.

Releases

No releases published

Packages

No packages published