# Time Domain

## TimeDomain

class canlib.canlib.TimeDomain

  A time domain is a set of channels with a common time base.

  add_channel(channel)

    Add a channel to the domain.

    Parameters

      channel (`Channel`) – Canlib channel

  close()

    Delete all members of the domain and then delete the domain itself.

  get_data()

    Get Time Domain data about channels and devices in the time domain.

    Returns

      `TimeDomainData`

  remove_channel(channel)

    Remove a channel from the domain.

    Parameters

      channel (`Channel`) – Canlib channel

  reset_time()

    Reset the time of all channels in the domain.

## TimeDomainData

class canlib.canlib.TimeDomainData(sync_groups, synced_members, non_sync_cards, non_synced_members)
  Variables

    - sync_groups (`int`) – Number of MagiSync groups.

    - synced_members (`int`) – Number of MagiSynced channels.

    - non_sync_cards (`int`) – Number of MagiSync interfaces.

    - non_synced_members (`int`) – Number of non-MagiSynced channels.