set_default


Description:

[ Version ( since = "1.4" ) ]
public static void set_default (Clock? new_clock)

Sets the default system clock that can be obtained with obtain.

This is mostly used for testing and debugging purposes when you want to have control over the time reported by the default system clock.

MT safe.

Parameters:

new_clock

a Clock