Converted all 'tickcount()' to 'GetTickCount()'