Click or drag to resize
AtomicMonotonicTimestampGenerator Class
A timestamp generator that guarantees monotonically increasing timestamps among all client threads and logs warnings when timestamps drift in the future.
Inheritance Hierarchy
SystemObject
  DseAtomicMonotonicTimestampGenerator
    DseAtomicMonotonicWinApiTimestampGenerator

Namespace: Dse
Assembly: Dse (in Dse.dll) Version: 2.1.0
Syntax
C#
public class AtomicMonotonicTimestampGenerator : ITimestampGenerator

The AtomicMonotonicTimestampGenerator type exposes the following members.

Constructors
  NameDescription
Public methodAtomicMonotonicTimestampGenerator
Creates a new instance of AtomicMonotonicTimestampGenerator.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodNext
Returns the next timestamp in microseconds since UNIX epoch.

Implementers should enforce increasing monotonic timestamps, that is, a timestamp returned should always be strictly greater that any previously returned timestamp.

Implementers should strive to achieve microsecond precision in the best possible way, which is usually largely dependent on the underlying operating system's capabilities.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberDefaultMinLogInterval
Default time separation between log events (expressed in milliseconds) in case of multiple log events.
Public fieldStatic memberDefaultWarningThreshold
Default warning threshold in milliseconds.
Top
See Also

Reference