1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
\r
5 <meta http-equiv="Content-Style-Type" content="text/css">
\r
6 <meta name="keywords" content="Simple Directmedia Layer SDL2.0">
\r
7 <link rel="top" href="index.html" title="
\83z
\81[
\83\80">
\r
8 <link rel="parent" href="CategoryTimer.html" title="1
\82Â
\8fã">
\r
9 <title>SDL_TICKS_PASSED</title>
\r
12 <a href="index.html">
\96Ú
\8e\9f</a> - <a href="ApiByCategory.html">API(
\8b@
\94\
\95Ê)</a> - <a href="CategoryTimer.html">
\83^
\83C
\83}</a> - SDL_TICKS_PASSED
\r
14 <h1>SDL_TICKS_PASSED</h1>
\r
15 \8co
\89ß
\8e\9e\8aÔ(
\83~
\83\8a\95b)
\82ð
\94ä
\8ar
\82·
\82é
\r
17 <code>SDL_TICKS_PASSED(A, B)</code>
\r
19 <table border="1" summary="SDL_TICKS_PASSED">
\r
20 <tr><td>A</td><td>
\8dÅ
\8f\89\82Ì
\8co
\89ß
\8e\9e\8aÔ</td></tr>
\r
21 <tr><td>B</td><td>
\8e\9f\82Ì
\8co
\89ß
\8e\9e\8aÔ</td></tr>
\r
23 <h2>
\96ß
\82è
\92l</h2>
\r
24 A
\82ªB
\82ð
\92´
\82¦
\82Ä
\82¢
\82ê
\82Î
\90^
\82ð
\96ß
\82·.
\r
25 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
29 /* 100
\83~
\83\8a\95b
\91Ò
\82Â
\82È
\82ç
\82Î,
\8e\9f\82Ì
\82æ
\82¤
\82É
\82·
\82ê
\82Î
\82æ
\82¢: */
\r
30 Uint32 timeout = SDL_GetTicks() + 100;
\r
31 while (!SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) {
\r
32 /* ...
\82±
\82±
\82Å
\8e\9e\8aÔ
\82ª
\8co
\89ß
\82·
\82é
\82Ü
\82Å
\82Ì
\8f\88\97\9d\82ð
\8ds
\82¤ */
\r
37 <h2>
\83o
\81[
\83W
\83\87\83\93</h2>
\r
39 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
40 <a href="SDL_GetTicks.html">SDL_GetTicks</a><br>
\r
41 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
42 <a href="https://wiki.libsdl.org/SDL_TICKS_PASSED">SDL_TICKS_PASSED - SDL Wiki</a>
\r