Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTimeSpan.Ticks Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTimeSpan.Ticks Property
Get the number of ticks that represent the value of the current AFTimeSpan structure.

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public long Ticks { get; }
Public ReadOnly Property Ticks As Long
	Get

Dim instance As AFTimeSpan
Dim value As Long

value = instance.Ticks
public:
property long long Ticks {
	long long get ();
}
member Ticks : int64 with get

Property Value

Type: Int64
The number of ticks contained in this instance.

Remarks

The smallest unit of time is the tick, which is equal to 100 nanoseconds. A tick can be negative or positive.

Since there are a variable number of days in a year or month, an AFTimeSpan defined using these interval values may return unexpected results. A year interval is calculated as 365.25 days and a month interval is calculated as 30 days.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in