SyntaxFix
Write A Post
Hire A Developer
Questions
use <sys/time.h>
<sys/time.h>
struct timeval tp; gettimeofday(&tp, NULL); long int ms = tp.tv_sec * 1000 + tp.tv_usec / 1000;
refer this.