Skip to content

A simple class, which makes the analysis of time performance of methods, simpler and more efficient.

License

Notifications You must be signed in to change notification settings

juliosenha/PerformanceDiagnostics4Delphi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PerformanceDiagnostics4Delphi

A simple class, which makes the analysis of time performance of methods, simpler and more efficient. Works based on TObject and String(MethodName).

For install in your project using boss:

$ boss install github.com/EduardoGrtt/PerformanceDiagnostics4Delphi:1.0.0

How to Use

To use this API you must add the "PerformanceDiagnostics4Delphi\src" Path in your Delphi or on your project.

Sample

var
  APerformance: IPerformanceDiagnostics;
  AMyObject: TMyClass;
begin
  AMyObject := TMyClass.Create;
  try
    {Execute is a method of TMyClass}
    APerformance := TPerformanceDiagnostics.New(AMyObject).Add('Execute');
    AMyObject.Execute;
  finally
    AMyObject.Free;
  end;
  ShowMessage(Format('%f seconds', [APerformance.GetTotalSeconds]));
end;

About

A simple class, which makes the analysis of time performance of methods, simpler and more efficient.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Pascal 100.0%