Hello friends,
Can any one tell me the alternative of QueryPerformanceCounter
and how to make this function to work as same in linux platform which was written in windows platform
Quote:
int entropy_fun(unsigned char buf[], unsigned int len)
{
unsigned __int64 pentium_tsc[1];
unsigned int i;
QueryPerformanceCounter((LARGE_INTEGER *)pentium_tsc);
for(i = 0; i < 8 && i < len; ++i)
buf[i] = ((unsigned char*)pentium_tsc)[i];
return i;
}
|
Thanks & Regards,
Anu
http://linuxquestions.cachefly.net/i...ies/newbie.gif