DataSourceClock - Cesium Documentation

# DataSourceClock

#### new DataSourceClock()

  Represents CZML document-level clock settings.
  Source: DataSources/DataSourceClock.js, line 28

### Members

#### clockRange :ClockRange

  Gets or sets how the clock should behave when `startTime` or `stopTime` is reached.
  Source: DataSources/DataSourceClock.js, line 78

#### clockStep :ClockStep

  Gets or sets if clock advancement is frame dependent or system clock dependent.
  Source: DataSources/DataSourceClock.js, line 85

#### currentTime :JulianDate

  Gets or sets the initial time to use when switching to this clock.
  Source: DataSources/DataSourceClock.js, line 71

#### readonlydefinitionChanged :Event

  Gets the event that is raised whenever a new property is assigned.
  Source: DataSources/DataSourceClock.js, line 46

#### multiplier :Number

  Gets or sets how much time advances with each tick, negative values allow for advancing backwards. If `clockStep` is set to ClockStep.TICK_DEPENDENT this is the number of seconds to advance. If `clockStep` is set to ClockStep.SYSTEM_CLOCK_MULTIPLIER this value is multiplied by the elapsed system time since the last call to tick.
  Source: DataSources/DataSourceClock.js, line 95

#### startTime :JulianDate

  Gets or sets the start time of the clock to use when looping or clamped.
  Source: DataSources/DataSourceClock.js, line 57

#### stopTime :JulianDate

  Gets or sets the stop time of the clock to use when looping or clamped.
  Source: DataSources/DataSourceClock.js, line 64

### Methods

#### clone(result) → DataSourceClock

  Duplicates a DataSourceClock instance.

  Name | Type | Description
  --- | --- | ---
  `result` | DataSourceClock | optional The object onto which to store the result.

  ##### Returns:

  The modified result parameter or a new instance if one was not provided.
  Source: DataSources/DataSourceClock.js, line 104

#### equals(other) → Boolean

  Returns true if this DataSourceClock is equivalent to the other

  Name | Type | Description
  --- | --- | ---
  `other` | DataSourceClock | The other DataSourceClock to compare to.

  ##### Returns:

  `true` if the DataSourceClocks are equal; otherwise, `false`.
  Source: DataSources/DataSourceClock.js, line 123

#### getValue() → Clock

  Gets the value of this clock instance as a `Clock` object.

  ##### Returns:

  The modified result parameter or a new instance if one was not provided.
  Source: DataSources/DataSourceClock.js, line 160

#### merge(source)

  Assigns each unassigned property on this object to the value of the same property on the provided source object.

  Name | Type | Description
  --- | --- | ---
  `source` | DataSourceClock | The object to be merged into this object.

  Source: DataSources/DataSourceClock.js, line 140