Gorgon
Show / Hide Table of Contents

Struct GorgonTimestampDisjointResult

The result from a GorgonTimestampDisjointQuery.

Implements
IGorgonEquatableByRef<GorgonTimestampDisjointResult>
IEquatable<GorgonTimestampDisjointResult>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public readonly struct GorgonTimestampDisjointResult : IGorgonEquatableByRef<GorgonTimestampDisjointResult>, IEquatable<GorgonTimestampDisjointResult>

Fields

| Edit this page View Source

Frequency

The frequency that the counter increments at, in Hz.

Declaration
public readonly ulong Frequency
Field Value
Type Description
ulong
| Edit this page View Source

IsDisjoint

Flag to indicate that the timestamp is disjointed.

Declaration
public readonly bool IsDisjoint
Field Value
Type Description
bool
Remarks

If this is true, something occurred in between the GorgonTimestampDisjointQuery Begin and End calls that caused the timestamp counter to become discontinuous or disjoint, such as unplugging the AC cord on a laptop, overheating, or throttling up/down due to laptop savings events. The timestamp returned for a timestamp query is only reliable if Disjoint is false.

Methods

| Edit this page View Source

Equals(GorgonTimestampDisjointResult)

Function to compare this instance with another.

Declaration
public bool Equals(GorgonTimestampDisjointResult other)
Parameters
Type Name Description
GorgonTimestampDisjointResult other

The other instance to use for comparison.

Returns
Type Description
bool

true if equal, false if not.

| Edit this page View Source

Equals(in GorgonTimestampDisjointResult)

Function to compare this instance with another.

Declaration
public bool Equals(in GorgonTimestampDisjointResult other)
Parameters
Type Name Description
GorgonTimestampDisjointResult other

The other instance to use for comparison.

Returns
Type Description
bool

true if equal, false if not.

| Edit this page View Source

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The object to compare with the current instance.

Returns
Type Description
bool

true if the specified object is equal to this instance; otherwise, false.

Overrides
ValueType.Equals(object)
| Edit this page View Source

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
ValueType.GetHashCode()
| Edit this page View Source

ToString()

Returns a string that represents this instance.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents this instance.

Overrides
ValueType.ToString()

Implements

IGorgonEquatableByRef<T>
IEquatable<T>

Extension Methods

GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author