43 lines · 1.4 KB · Standard ML
RawDownload
(* Timer -- SML Basis Library *) type cpu_timertype real_timer val startCPUTimer  : unit -> cpu_timerval totalCPUTimer  : unit -> cpu_timerval checkCPUTimer  : cpu_timer ->                      { usr : Time.time, sys : Time.time, gc : Time.time } val startRealTimer : unit -> real_timerval totalRealTimer : unit -> real_timerval checkRealTimer : real_timer -> Time.time (*    [cpu_timer] is the type of timers for measuring CPU time consumption   (user time, garbage collection time, and system time).    [real_timer] is the type of timers for measuring the passing of   real time (wall-clock time).    [startCPUTimer ()] returns a cpu_timer started at the moment of    the call.    [totalCPUTimer ()] returns a cpu_timer started at the moment the    library was loaded.    [checkCPUTimer tmr] returns {usr, sys, gc} where usr is the amount   of user CPU time consumed since tmr was started, gc is the amount   of user CPU time spent on garbage collection, and sys is the   amount of system CPU time consumed since tmr was started.  Note   that gc time is included in the usr time.  Under MS DOS, usr time   and gc time are measured in real time.    [startRealTimer ()] returns a real_timer started at the moment of    the call.    [totalRealTimer ()] returns a real_timer started at the moment the    library was loaded.    [checkRealTimer tmr] returns the amount of real time that has passed   since tmr was started.*)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t