Diff for games/_shared/standart.c between version 1.3 and 1.4
| version 1.3, 2003/08/03 21:34:18 |
version 1.4, 2003/10/21 10:23:43 |
|
|
| * All rights reserved. |
* All rights reserved. |
| */ |
*/ |
| |
|
| /* $Platon: games/_shared/standart.c,v 1.2 2003/06/27 21:58:29 nepto Exp $ */ |
/* $Platon: games/_shared/standart.c,v 1.3 2003/08/03 21:34:18 nepto Exp $ */ |
| |
|
| /* NOTE: incorrect "standart" word in filename is kept |
/* NOTE: incorrect "standart" word in filename is kept |
| from historical reasons; correct word is "standard" */ |
from historical reasons; correct word is "standard" */ |
|
|
| |
|
| void wait(double sec) |
void wait(double sec) |
| { |
{ |
| wait_clocks(max(1, sec * CLOCKS_PER_SEC), wait_clocks_dummy_func); |
clock_t start = clock(); |
| |
clock_t total = max(1, sec * CLOCKS_PER_SEC); |
| |
while (clock() - start < total) |
| |
; |
| } |
} |
| |
|
| WORD wround(double a) |
WORD wround(double a) |
Platon Group <platon@platon.org> http://platon.org/
|
|