Simple example of converting win32 api's to linux
QueryPerformanceFrequency (http://msdn.microsoft.com/en-us/library/ms644905.aspx) QueryPerformanceCounter (http://msdn.microsoft.com/en-us/library/ms644904.aspx) GetTickCount (http://msdn.microsoft.com/en-us/library/ms724408(VS.85).aspx)