File: report_timing.doc

package info (click to toggle)
hol-light 20120602-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 23,452 kB
  • sloc: ml: 348,797; cpp: 438; java: 279; makefile: 252; sh: 183; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (32 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\DOC report_timing

\TYPE {report_timing : bool ref}

\SYNOPSIS
Flag to determine whether {time} function outputs CPU time measure.

\DESCRIBE
When {report_timing} is true, a call {time f x} will evaluate {f x} as usual 
but also as a side-effect print out the CPU time taken. If {report_timing} is 
false, nothing will be printed. Times are already printed in this way 
automatically as informative output in some rules like {MESON}, so this can be 
used to silence them.

\FAILURE
Not applicable.

\EXAMPLE
{
  # time NUM_REDUCE_CONV `2 EXP 300 < 2 EXP 200`;;
  CPU time (user): 0.13
  val it : thm = |- 2 EXP 300 < 2 EXP 200 <=> F
  # report_timing := false;;
  val it : unit = ()
  # time NUM_REDUCE_CONV `2 EXP 300 < 2 EXP 200`;;
  val it : thm = |- 2 EXP 300 < 2 EXP 200 <=> F
}

\SEEALSO
time.

\ENDDOC