Table of Contents

Class Timer

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class Timer
Inheritance
Timer
Inherited Members

Methods

Continue(TimerHandle)

Calls native method g_timer_continue. Version: 2.4

[Version("2.4")]
public static extern void Continue(TimerHandle timer)

Parameters

timer TimerHandle

Transfer ownership: None Nullable: False

Destroy(TimerHandle)

Calls native method g_timer_destroy.

public static extern void Destroy(TimerHandle timer)

Parameters

timer TimerHandle

Transfer ownership: None Nullable: False

Elapsed(TimerHandle, ref ulong)

Calls native method g_timer_elapsed.

public static extern double Elapsed(TimerHandle timer, ref ulong microseconds)

Parameters

timer TimerHandle

Transfer ownership: None Nullable: False

microseconds ulong

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

IsActive(TimerHandle)

Calls native method g_timer_is_active. Version: 2.62

[Version("2.62")]
public static extern bool IsActive(TimerHandle timer)

Parameters

timer TimerHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

New()

Calls native function g_timer_new.

public static extern TimerOwnedHandle New()

Returns

TimerOwnedHandle

Transfer ownership: Full Nullable: False

Reset(TimerHandle)

Calls native method g_timer_reset.

public static extern void Reset(TimerHandle timer)

Parameters

timer TimerHandle

Transfer ownership: None Nullable: False

Start(TimerHandle)

Calls native method g_timer_start.

public static extern void Start(TimerHandle timer)

Parameters

timer TimerHandle

Transfer ownership: None Nullable: False

Stop(TimerHandle)

Calls native method g_timer_stop.

public static extern void Stop(TimerHandle timer)

Parameters

timer TimerHandle

Transfer ownership: None Nullable: False