Mercurial > mplayer.hg
annotate TOOLS/usleep-test.c @ 9709:1b1e33d1688a
Fix rawvideo and -audiofile
Use the new config header
Add a cache for the stream used by -audiofile
author | albeu |
---|---|
date | Thu, 27 Mar 2003 20:38:14 +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 } |