Debian Codegraph @

info/gcl/Time.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>Time (ANSI and GNU Common Lisp Document)</title>
7
8 <meta name="description" content="Time (ANSI and GNU Common Lisp Document)">
9 <meta name="keywords" content="Time (ANSI and GNU Common Lisp Document)">
10 <meta name="resource-type" content="document">
11 <meta name="distribution" content="global">
12 <meta name="Generator" content="makeinfo">
13 <link href="index.html" rel="start" title="Top">
14 <link href="The-External-Environment.html" rel="up" title="The External Environment">
15 <link href="Decoded-Time.html" rel="next" title="Decoded Time">
16 <link href="Environment-Inquiry.html" rel="prev" title="Environment Inquiry">
17 <style type="text/css">
18 <!--
19 a.summary-letter {text-decoration: none}
20 blockquote.indentedblock {margin-right: 0em}
21 div.display {margin-left: 3.2em}
22 div.example {margin-left: 3.2em}
23 div.lisp {margin-left: 3.2em}
24 kbd {font-style: oblique}
25 pre.display {font-family: inherit}
26 pre.format {font-family: inherit}
27 pre.menu-comment {font-family: serif}
28 pre.menu-preformatted {font-family: serif}
29 span.nolinebreak {white-space: nowrap}
30 span.roman {font-family: initial; font-weight: normal}
31 span.sansserif {font-family: sans-serif; font-weight: normal}
32 ul.no-bullet {list-style: none}
33 -->
34 </style>
35
36
37 </head>
38
39 <body lang="en">
40 <span id="Time"></span><div class="header">
41 <p>
42 Previous: <a href="Environment-Inquiry.html" accesskey="p" rel="prev">Environment Inquiry</a>, Up: <a href="The-External-Environment.html" accesskey="u" rel="up">The External Environment</a> &nbsp; </p>
43 </div>
44 <hr>
45 <span id="Time-1"></span><h4 class="subsection">25.1.4 Time</h4>
46
47 <p>Time is represented in four different ways in <span class="roman">Common Lisp</span>:
48 <i>decoded time</i>,
49 <i>universal time</i>,
50 <i>internal time</i>,
51 and seconds.
52 <i>Decoded time</i> and <i>universal time</i> are used primarily to represent calendar time,
53 and are precise only to one second.
54 <i>Internal time</i> is used primarily to represent measurements of computer
55 time (such as run time) and is precise to some <i>implementation-dependent</i>
56 fraction of a second called an <i>internal time unit</i>,
57 as specified by <b>internal-time-units-per-second</b>.
58 An <i>internal time</i> can be used
59 for either <i>absolute</i> and <i>relative</i> <i>time</i> measurements.
60 Both a <i>universal time</i> and a <i>decoded time</i> can be used
61 only for <i>absolute</i> <i>time</i> measurements.
62 In the case of one function, <b>sleep</b>,
63 time intervals are represented as a non-negative <i>real</i> number of seconds.
64 </p>
65 <p>Figure 25&ndash;4 shows <i>defined names</i> relating to <i>time</i>.
66 </p>
67 <div class="format">
68 <pre class="format"> decode-universal-time get-internal-run-time <!-- /@w -->
69 encode-universal-time get-universal-time <!-- /@w -->
70 get-decoded-time internal-time-units-per-second <!-- /@w -->
71 get-internal-real-time sleep <!-- /@w -->
72
73 Figure 25&ndash;4: Defined names involving Time. <!-- /@w -->
74
75 </pre></div>
76
77 <table class="menu" border="0" cellspacing="0">
78 <tr><td align="left" valign="top">&bull; <a href="Decoded-Time.html" accesskey="1">Decoded Time</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
79 </td></tr>
80 <tr><td align="left" valign="top">&bull; <a href="Universal-Time.html" accesskey="2">Universal Time</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
81 </td></tr>
82 <tr><td align="left" valign="top">&bull; <a href="Internal-Time.html" accesskey="3">Internal Time</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
83 </td></tr>
84 <tr><td align="left" valign="top">&bull; <a href="Seconds.html" accesskey="4">Seconds</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
85 </td></tr>
86 </table>
87
88
89
90
91 </body>
92 </html>