我有以下代码:
QueryPerformanceCounter(&timeStart);
winMain::render(); //do stuff
QueryPerformanceCounter(&timeEnd);
numCounts = ( timeEnd.QuadPart - timeStart.QuadPart);
所有 3 个变量都被声明为 LARGE_INTEGER,代码应该可以工作,因为我遵循书本示例,但我得到:
错误 C2679: '=' binary no operator found 它采用 LONGLONG 类型的右手操作数它可能是 '_LARGE_INTEGER &_LARGE_INTEGER::operator =(const _LARGE_INTEGER &)' 1> durante laricerca di corrispondenza con l'elenco di argomenti' (LARGE_INTEGER, LONGLONG)'