
void test()
{
	float time1, time2, bigtime=0;
	int thing, q=0, m=0, z=4;
	while(!_kbhit()){}
	_getch();

	int i=0;
for(int p=0;p<1000;p++)
{


//cls();
locate(0, 44, 15, 30);cout<<"Time Taken: "<<bigtime<<endl;
locate(0, 45, 15, 30);cout<<"Characters put: "<<p*i<<endl;
locate(0, 46, 15, 30);cout<<"Frames put: "<<(p*i)/(80*50)<<endl;
locate(0, 47, 15, 30);cout<<"Characters per second: "<<(p*i)/bigtime<<endl;
locate(0, 48, 15, 30);cout<<"Frames per second: "<<((p*i)/(80*50))/bigtime<<endl;
	
	
	time1=float(clock());

for(i=0;i<4000;i++)
{

	thing=1+rand()%2;
//	z=1+rand()%15;
		
//	locate(q,m,z,1);cout << char(thing);
	put(char(thing), q,m, z);
//	print("©", q, m, z);


	if(z==4)
		z=12;
	else
		z=4;

	if(q<79)
		q++;
	else
	{	
		q=0;
		if(m<39)
			m++;
		else
			m=0;
	}
}
time2=float(clock());
	bigtime += ((time2-time1)/CLOCKS_PER_SEC);

}

cout << "\n\n\n\n\n";
//cls();
//cout<<"Time Taken: "<<bigtime<<endl;
//cout<<"Characters put: "<<p*i<<endl;
//cout<<"Frames put: "<<(p*i)/(80*50)<<endl;
//cout<<"Characters per second: "<<(p*i)/bigtime<<endl;
//cout<<"Frames per second: "<<((p*i)/(80*50))/bigtime<<endl;

ofstream fout("bit.txt", ios::out|ios::binary);


fout<<"Time Taken: "<<bigtime<<endl;
fout<<"Characters put: "<<p*i<<endl;
fout<<"Characters per second: "<<(p*i)/bigtime<<endl;
fout.close();
cout << "\n\n\n\n\n";



}

