Mercurial > mplayer.hg
annotate TOOLS/usleep-test.c @ 8540:1f8380a935a0
sync
author | nicolas |
---|---|
date | Mon, 23 Dec 2002 20:14:13 +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 } |