/// <summary> /// Completes current step and begins a new one. /// </summary> /// <param name="stepN">New step name.</param> /// <returns>Current step.</returns> public ExecutionStep Next(string stepN) { var step = Stop(); _currentStep = new ExecutionStep(stepN, step.Ends); return(step); }
/// <summary> /// Initializes meter and creates first step. /// </summary> /// <param name="step1">Name of first step.</param> /// <param name="stepAction">Optional step action.</param> public ExecutionStepMeter(string step1, Action <ExecutionStep> stepAction = null) { StepAction = stepAction; _currentStep = new ExecutionStep(step1, DateTime.Now); }