Debian Codegraph @

docs/manual/_clock_.html

raw symbols SCIP
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>clock</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Monaco,Courier" size=6 color="#999900"><b>
12 clock
13 </b></font></table></table>
14 <p>A function that can be used in <a href="Formulas.html">Formulas</a>.</p>
15 <h2>Syntax and semantics</h2>
16 <dl>
17 <dt><b><code><font size=+1>clock</font></code></b> ( )
18 <dd>the number of seconds since system start-up, with microsecond precision.</dd>
19 </dl>
20 <h2>Examples</h2>
21 <code> t = <b>clock</b>()<br></code>
22 <code> for i to 1000<br></code>
23 <code> endfor<br></code>
24 <code> <a href="_appendInfoLine_.html">appendInfoLine</a>: "Time elapsed: ", <b>clock</b>() - t, " seconds"<br></code>
25 <code style="color:red">=&gt;</code><br>
26 <code> Time elapsed: 0.00013599998783320189 seconds<br></code>
27 <code> t = <b>clock</b>()<br></code>
28 <code> for i to 1000<br></code>
29 <code> endfor<br></code>
30 <code> timeElapsed = <b>clock</b>() - t<br></code>
31 <code> <a href="_appendInfoLine_.html">appendInfoLine</a>: "Time elapsed: ", <a href="_fixed-S_.html">fixed$</a> (1000 * timeElapsed, 3), " ms"<br></code>
32 <code style="color:red">=&gt;</code><br>
33 <code> Time elapsed: 0.138 ms<br></code>
34 <h3>Links to this page</h3>
35 <ul>
36 <li><a href="Functions.html">Functions</a>
37 <li><a href="What_s_new_.html">What's new?</a>
38 </ul>
39 <hr>
40 <address>
41 <p>© Paul Boersma 2025</p>
42 </address>
43 </body>
44 </html>