devxlogo

Implement GetTickCount in Linux

Implement GetTickCount in Linux

To implement the GetTickCount API when porting code from Windows to Linux, use the following code:

long getTickCount(){    tms tm;    return times(&tm);}

devx-admin

Share the Post: