Class Tick
Timer tick helper functions for Mechatronics.SystemGraph Give time resolution ticks down to the nanosecond
Namespace: Mechatronics.SystemGraph
Syntax
public class Tick
Methods
Elapsed(UInt64, UInt64, UInt64)
Test for time elapsed between Now and Last timer value for a given delay
Declaration
public static bool Elapsed(ulong Now, ulong Last, ulong Delay)
Parameters
| Type | Name | Description |
|---|---|---|
| UInt64 | Now | Current Time |
| UInt64 | Last | Last Time |
| UInt64 | Delay | Delay to test elapsed time |
Returns
| Type | Description |
|---|---|
| Boolean | True if delay has been spent between Now and Last time |
Ms()
Returns the current millisecond tick time
Declaration
public static ulong Ms()
Returns
| Type | Description |
|---|---|
| UInt64 | Current Millisecond |
Ns()
Returns the current nanosecond tick time
Declaration
public static ulong Ns()
Returns
| Type | Description |
|---|---|
| UInt64 | Current Nanosecond |
Us()
Returns the current microsecond tick time
Declaration
public static ulong Us()
Returns
| Type | Description |
|---|---|
| UInt64 | Current Microsecond |