
/* counts to three
*/
#include <iostream>
#include <cstdlib>
#include <time.h>
using namespace std;
void sleep(unsigned int mseconds);
int main()
{
int i = 0;
do{
cout<< i;
sleep(1000);
i++;
}while(i <= 3);
return 0;
}
void sleep(unsigned int mseconds)
{
clock_t goal = mseconds + clock();
while (goal > clock());
}
