Delphi

[Delphi] TStopwatch 사용

그저심 2022. 9. 2. 09:47

 

uses System.Diagnostics

var 
  stopwatch: TStopWatch;
begin
  stopwatch := TStopWatch.StartNew;
  try
    process ~~    
    // Get process time : stopwatch.ElapsedMilliseconds    
  finally
  	stopwatch.Stop;
  end;
end;

http://docwiki.embarcadero.com/Libraries/Sydney/en/System.Diagnostics.TStopwatch

 

System.Diagnostics.TStopwatch - RAD Studio API Documentation

From RAD Studio API Documentation Delphi TStopwatch = record strict private class var FFrequency: Int64; class var FIsHighResolution: Boolean; class var TickFrequency: Double; strict private FElapsed: Int64; FRunning: Boolean; FStartTimeStamp: Int64; funct

docwiki.embarcadero.com

 

반응형