Code Comments
Programming Forum and web based access to our favorite programming groups./* it is correct or not correct. this is sample program */
/* I want to get 1/1000 micro second */
/* I was testing and how to method serch */
/* This is borland turbo c++ 3.0 library referance */
/* gcc */
#include <stdio.h>
#include <sys/timeb.h>
#include <time.h>
main()
{
int c;
time_t timer;
struct timeb *mil;
timer = time(NULL);
ftime(&mil);
while((c = getchar()) == '\n')
{
printf(" %ld micro " , mil->millitm );
printf("[%c]\n",c);
}
getchar();
}
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.