TStopwatch is high-resolution stopwatch.
This is present in the version of the old. Unfortunately, I did not know.
The header, it will include.
TStopwatch stopwatch = TStopwatch::Create(); stopwatch.Start(); Sleep(301); stopwatch.Stop(); ShowMessage( String().sprintf(L"%d", stopwatch.ElapsedMilliseconds));
TStopwatch is delphi record.
Although I tried to new in "C++", it can be executed.
TStopwatch* stopwatch = new TStopwatch();//::Create(); stopwatch->Create(); stopwatch->Start(); Sleep(301); stopwatch->Stop(); ShowMessage( String().sprintf(L"%d", stopwatch->ElapsedMilliseconds)); delete stopwatch;
But, Because it is feel free types, "new" is not needed.