set_resolution


Description:

public ClockTime set_resolution (ClockTime resolution)

Sets the accuracy of the clock.

Some clocks have the possibility to operate with different accuracy at the expense of more resource usage. There is normally no need to change the default resolution of a clock. The resolution of a clock can only be changed if the clock has the CAN_SET_RESOLUTION flag set.

Parameters:

this

a Clock

resolution

The resolution to set

Returns:

the new resolution of the clock.