Struct DeviceTimeReading
A trusted-time sample from the event monitor.
Implements
Namespace: GUPS.AntiCheat.Monitor.Time
Assembly: cs.temp.dll.dll
Syntax
public struct DeviceTimeReading
Constructors
DeviceTimeReading(EDeviceTimeCheck, DateTime, Double, Boolean, Double, Boolean)
Initializes a new instance of the DeviceTimeReading struct.
Declaration
public DeviceTimeReading(EDeviceTimeCheck _Source, DateTime _Utc, double _MonotonicSeconds, bool _UsesBootClock, double _RoundTripSeconds, bool _AgreesWithDevice)
Parameters
| Type | Name | Description |
|---|---|---|
| EDeviceTimeCheck | _Source | Whether the sample came from the internet or the local base. |
| DateTime | _Utc | The UTC instant of the sample. |
| System.Double | _MonotonicSeconds | Monotonic seconds captured with |
| System.Boolean | _UsesBootClock | Whether |
| System.Double | _RoundTripSeconds | Round-trip seconds of an internet read, or zero. |
| System.Boolean | _AgreesWithDevice | Whether the device wall clock agreed with the sample. |
Properties
AgreesWithDevice
Gets whether the device wall clock agreed with this sample inside the tolerance.
Declaration
public bool AgreesWithDevice { readonly get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
MonotonicSeconds
Gets the monotonic seconds captured with Utc.
Declaration
public double MonotonicSeconds { readonly get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
RoundTripSeconds
Gets the round-trip seconds of an internet read, or zero for a local sample.
Declaration
public double RoundTripSeconds { readonly get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Source
Gets whether this sample came from the internet or from the saved local base.
Declaration
public EDeviceTimeCheck Source { readonly get; }
Property Value
| Type | Description |
|---|---|
| EDeviceTimeCheck |
UsesBootClock
Gets whether MonotonicSeconds is boot time. Otherwise it is Unity real time.
Declaration
public bool UsesBootClock { readonly get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Utc
Gets the UTC instant of the sample.
Declaration
public DateTime Utc { readonly get; }
Property Value
| Type | Description |
|---|---|
| DateTime |