<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=euc-jp"> <meta name="GENERATOR" content="emacs"> <meta name="Author" content="kacchan"> <title>KXL_Timer</title> </head> <body text="#000000" bgcolor="#f0f0dc" link="#3366FF" vlink="#3366FF" alink="#FF0000"> <a href="kxlendsound.html">Prev</a> <a href="KXL.html">Top</a> <a href="kxlgettimer.html">Next</a> <hr> <b>Name</b><br><br> <font size=+2>KXL_Timer</font><br><br> <b>Synopsis</b><br> <pre>KXL_Timer -- The number of times of interruption for 1 second is specified. </pre><br> <b>Description</b><br> <pre>void KXL_Timer(Uint16 count);</pre><br> <b>Arguments</b><br><br> <table border="1"> <tr><td>count</td><td>The number of times of interruption for 1 second.</td></tr> </table> <br><br> <b>Return Value</b><br><br> Nothing. <br><br><br> <b>Exsample</b><br> <pre> #include <KXL.h> int main(void) { Uint16 count = 0; Uint8 buff[64]; KXL_CreateWindow(100, 100, "kxl.org", 0); <b>KXL_Timer(1);</b> // 1 interruption per second while (count <= 10) { KXL_ClearFrameImm(0, 0, 100, 100); sprintf(buff, "%2d second", count ++); KXL_PutText(8, 50, buff); KXL_UpDateImm(0, 0, 100, 100); while (KXL_GetTimer() == False); KXL_ResetTimer(); } KXL_DeleteWindow(); return 0; } </pre> </body> </html>