CLASS StopwatchReporter

This class is used to report the time taken to execute The stopwatch is started and stopped around parts of the code that we want to measure.

Public Methods

Start

public void Start(string stepName)

Start the stopwatch for the given step name.

Parameters:

  • stepName (string)

Stop

public void Stop(string stepName, int itemCount)

Stop the stopwatch for the given step name.

Parameters:

  • stepName (string)
  • itemCount (int)

LogReport

public void LogReport(string siteTitle)

Generate a report of the time taken for each step.

Parameters:

  • siteTitle (string)