SetTimeSyncEvent

data class SetTimeSyncEvent(val nanoTime: Long = System.nanoTime(), val systemTimestamp: Long = System.currentTimeMillis(), val unit: String, val localTime: Long = systemTimestamp, val remoteTime: Long) : SessionEvent

Defines an event describing a time synchronization point. The format for remote time is date +%s%N (unix cli utility)

Parameters

unit

The entity reporting its local time

localTime

Timestamp of the local PowerGoblin system

remoteTime

Timestamp of the remote 'unit'

Constructors

Link copied to clipboard
constructor(nanoTime: Long = System.nanoTime(), systemTimestamp: Long = System.currentTimeMillis(), unit: String, localTime: Long = systemTimestamp, remoteTime: Long)

Properties

Link copied to clipboard
Link copied to clipboard
open override val nanoTime: Long

Current value of the most precise available system timer, in nanoseconds.

Link copied to clipboard
Link copied to clipboard
open override val systemTimestamp: Long

Current time in milliseconds.

Link copied to clipboard

Functions

Link copied to clipboard
fun diff(): Long
Link copied to clipboard
open override fun toString(): String