SystemClock

class SystemClock(**properties: Any)

Superclasses: Clock, Object, InitiallyUnowned, Object

Constructors:

SystemClock(**properties)

Methods

class SystemClock
obtain() Clock

Get a handle to the default system clock. The refcount of the clock will be increased so you need to unref the clock after usage.

set_default(new_clock: Clock | None = None) None

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.

Added in version 1.4.

Parameters:

new_clock – a Clock

Properties

class SystemClock
props.clock_type: ClockType

Fields

class SystemClock
clock
priv