Mercurial > mplayer.hg
annotate TOOLS/usleep-test.c @ 12167:6421ebfc0018
avoid unneeded stream_reset()
aspect ratio support (rarely works ...)
author, title, ...
author | michael |
---|---|
date | Sun, 11 Apr 2004 16:48:48 +0000 |
parents | 1187542d84d8 |
children |
rev | line source |
---|---|
4400 | 1 |
2 main(){ | |
3 int u; | |
4 | |
5 for(u=0;u<30000;u+=500){ | |
6 unsigned int x[9]; | |
7 int i; | |
8 x[0]=GetTimer(); | |
9 for(i=1;i<=8;i++){ | |
10 usleep(u); | |
11 x[i]=GetTimer(); | |
12 } | |
13 printf("%d -> %d %d %d %d %d %d %d %d\n",u, | |
14 x[1]-x[0], | |
15 x[2]-x[1], | |
16 x[3]-x[2], | |
17 x[4]-x[3], | |
18 x[5]-x[4], | |
19 x[6]-x[5], | |
20 x[7]-x[6], | |
21 x[8]-x[7] | |
22 ); | |
23 } | |
24 | |
25 | |
26 } |