Debian Codegraph @

docs/kxltimer.html

raw symbols SCIP
1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
5 <meta name="GENERATOR" content="emacs">
6 <meta name="Author" content="kacchan">
7 <title>KXL_Timer</title>
8 </head>
9 <body text="#000000" bgcolor="#f0f0dc" link="#3366FF" vlink="#3366FF" alink="#FF0000">
10
11 <a href="kxlendsound.html">Prev</a>
12 <a href="KXL.html">Top</a>
13 <a href="kxlgettimer.html">Next</a>
14 <hr>
15
16 <b>Name</b><br><br>
17 <font size=+2>KXL_Timer</font><br><br>
18
19 <b>Synopsis</b><br>
20 <pre>KXL_Timer -- The number of times of interruption for 1 second is specified.
21 </pre><br>
22
23 <b>Description</b><br>
24 <pre>void KXL_Timer(Uint16 count);</pre><br>
25
26 <b>Arguments</b><br><br>
27 <table border="1">
28 <tr><td>count</td><td>The number of times of interruption for 1 second.</td></tr>
29 </table>
30 <br><br>
31
32 <b>Return Value</b><br><br>
33 Nothing.
34 <br><br><br>
35
36 <b>Exsample</b><br>
37 <pre>
38 #include &lt;KXL.h&gt;
39
40 int main(void)
41 {
42 Uint16 count = 0;
43 Uint8 buff[64];
44
45 KXL_CreateWindow(100, 100, "kxl.org", 0);
46
47 <b>KXL_Timer(1);</b> // 1 interruption per second
48
49 while (count <= 10) {
50 KXL_ClearFrameImm(0, 0, 100, 100);
51 sprintf(buff, "%2d second", count ++);
52 KXL_PutText(8, 50, buff);
53 KXL_UpDateImm(0, 0, 100, 100);
54 while (KXL_GetTimer() == False);
55 KXL_ResetTimer();
56 }
57 KXL_DeleteWindow();
58 return 0;
59 }
60 </pre>
61
62 </body>
63 </html>