C++ time measure
clock_t clockStart, clockEnd; clockStart = clock(); // ... 処理 ... clockEnd = clock(); cout << "duration = " << (double)(clockEnd - clockStart) / CLOCKS_PER_SEC << "sec.\n";