projects
/
goodguy
/
cinelerra.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
monthly update msg
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
prof2
/
tst.c
1
#include <stdio.h>
2
3
void tst0()
4
{
5
printf(".");
6
}
7
8
void tst1()
9
{
10
printf("\r");
11
}
12
13
void tst2(int n)
14
{
15
volatile int i = n;
16
while( --i >= 0 );
17
if( (n&1) != 0 ) tst1(); else tst0();
18
}
19
20
int main(int ac, char **av,char **ev)
21
{
22
int i;
23
//profileStart();
24
setbuf(stdout,NULL);
25
printf("ok. %s\n",ev[0]);
26
for( i=30000; --i>=0; ) tst2(i);
27
printf("\n");
28
printf("done\n");
29
return 0;
30
}
31