OPC Studio User's Guide and Reference
RunningAverageTimeSpan Property (AutomatonStateStatistics)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Algorithms Namespace > AutomatonStateStatistics Class : RunningAverageTimeSpan Property
The running average time span this state has been active (including the current active state).
Syntax
'Declaration
 
<ColumnDisplayAttribute(MaximumWidth=19, RefinementRank=100)>
<DisplayAttribute(AutoGenerateField=False, 
   Order=0, 
   ShortName="Running Average Time Span")>
<DisplayFormatAttribute("{0:G}")>
<PureAttribute()>
Public ReadOnly Property RunningAverageTimeSpan As TimeSpan
'Usage
 
Dim instance As AutomatonStateStatistics
Dim value As TimeSpan
 
value = instance.RunningAverageTimeSpan
[ColumnDisplay(MaximumWidth=19, RefinementRank=100)]
[Display(AutoGenerateField=false, 
   Order=0, 
   ShortName="Running Average Time Span")]
[DisplayFormat("{0:G}")]
[Pure()]
public TimeSpan RunningAverageTimeSpan {get;}
[ColumnDisplay(MaximumWidth=19, RefinementRank=100)]
[Display(AutoGenerateField=false, 
   Order=0, 
   ShortName="Running Average Time Span")]
[DisplayFormat("{0:G}")]
[Pure()]
public:
property TimeSpan RunningAverageTimeSpan {
   TimeSpan get();
}
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also