StopWatchStack Class

Summary

Class which implements a stack for measuring durations using a stack-based structure.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Util
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["StopWatchStack"] class Type type-node

Syntax

public class StopWatchStack

Constructors

Name Summary
StopWatchStack(DateTimeProvider) Initializes a new instance of the NAnt.Core.Util.StopWatchStack class.

Methods

Name Value Summary
PopStop() TimeSpan
Pops the last started stopwatch and returns its elapsed time.
PushStart() void
Creates a new stopwatch instance with the current time and pushes it to the internal stack.