double time; time = (double)getTickCount(); time = ((double)getTickCount() - time) / getTickFrequency(); cout << time << endl;