<PackageReference Include="Relativity.Server.Import.SDK" Version="24000.1.0" />

Timekeeper2

public sealed class Timekeeper2
Represents a class object that tracks operational metrics. This class cannot be inherited.
public int Count { get; }

Gets the time keeper entry count.

public Timekeeper2()

Initializes a new instance of the Timekeeper2 class.

public Timekeeper2(IFileSystem fileSystem, IAppSettings settings)

Initializes a new instance of the Timekeeper2 class.

Generates a CSV report of all entries to the current working directory, with individual items represented as columns.

public void GenerateCsvReportItemsAsRows(string filenameSuffix, string directory)

Generates a CSV report of all entries to the specified directory, with individual items represented as columns.

public TimekeeperEntry2 GetEntry(string key)

Retrieves the entry for the specified operation key.

public TimekeeperEntry2 GetEntry(string key, int thread)

Retrieves the entry for the specified operation key and thread.

public void MarkEnd(string key)

Captures the ending time of an operation.

public void MarkEnd(string key, int thread)

Captures the ending time of an operation.

public void MarkStart(string key)

Captures the starting time of an operation.

public void MarkStart(string key, int thread)

Captures the starting time of an operation.