annotate TOOLS/usleep-test.c @ 7951:32ae0a9d06aa

Updated the DXR3 section to reflect command changes, prebuf replaced noprebuf and sync is a brand new command. Also indicates that prebuffering no longer is the default operation. Note regarding divx playback how you should set the lavc fps to 29.97 for proper playback on the em8300. I saw something on mplayer-dev-eng about everyone being allowed to commit doc-updates now. I hope this is valid, otherwise let me know.
author mswitch
date Tue, 29 Oct 2002 01:41:16 +0000
parents 1187542d84d8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4400
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
1
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
2 main(){
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
3 int u;
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
4
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
5 for(u=0;u<30000;u+=500){
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
6 unsigned int x[9];
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
7 int i;
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
8 x[0]=GetTimer();
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
9 for(i=1;i<=8;i++){
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
10 usleep(u);
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
11 x[i]=GetTimer();
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
12 }
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
13 printf("%d -> %d %d %d %d %d %d %d %d\n",u,
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
14 x[1]-x[0],
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
15 x[2]-x[1],
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
16 x[3]-x[2],
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
17 x[4]-x[3],
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
18 x[5]-x[4],
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
19 x[6]-x[5],
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
20 x[7]-x[6],
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
21 x[8]-x[7]
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
22 );
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
23 }
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
24
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
25
1187542d84d8 usleep() accurancy tester
arpi
parents:
diff changeset
26 }