set_master


Description:

public bool set_master (Clock? master)

Sets master as the master clock for this.

this will be automatically calibrated so that get_time reports the same time as the master clock.

A clock provider that slaves its clock to a master can get the current calibration values with get_calibration.

master can be null in which case this will not be slaved anymore. It will however keep reporting its time adjusted with the last configured rate and time offsets.

Parameters:

this

a Clock

master

a master Clock

Returns:

true if the clock is capable of being slaved to a master clock. Trying to set a master on a clock without the CAN_SET_MASTER flag will make this function return false.