Skip to main content

OperationClock

  • Namespace: PPDS.Migration.Progress
  • Assembly: PPDS.Migration
  • Kind: Class

Summary

Provides elapsed time since the current operation started. Call PPDS.Migration.Progress.OperationClock.Start at the beginning of each CLI command.

Members

Methods

Start

void Start()

Starts or restarts the operation clock. Call at the beginning of each CLI command.

Properties

Elapsed

TimeSpan Elapsed { get; }

Gets the elapsed time since PPDS.Migration.Progress.OperationClock.Start was called. Returns System.TimeSpan.Zero if not started.