gtimer.h File Reference

__G_TIMER_H__

Typedef GTimer

typedef typedefG_BEGIN_DECLS struct _GTimerGTimer

G_USEC_PER_SEC

g_timer_new ( void )

IMPORT_C GTimer *g_timer_new(void)

g_timer_destroy ( GTimer * )

IMPORT_C voidg_timer_destroy(GTimer *timer)

g_timer_start ( GTimer * )

IMPORT_C voidg_timer_start(GTimer *timer)

g_timer_stop ( GTimer * )

IMPORT_C voidg_timer_stop(GTimer *timer)

g_timer_reset ( GTimer * )

IMPORT_C voidg_timer_reset(GTimer *timer)

g_timer_continue ( GTimer * )

IMPORT_C voidg_timer_continue(GTimer *timer)

g_timer_elapsed ( GTimer *, gulong * )

IMPORT_C gdoubleg_timer_elapsed(GTimer *timer,
gulong *microseconds
)

g_usleep ( gulong )

IMPORT_C voidg_usleep(gulongmicroseconds)

g_time_val_add ( GTimeVal *, glong )

IMPORT_C voidg_time_val_add(GTimeVal *time_,
glongmicroseconds
)

g_time_val_add: : a GTimeVal : number of microseconds to add to

Adds the given number of microseconds to . can also be negative to decrease the value of .

g_time_val_from_iso8601 ( const gchar *, GTimeVal * )

IMPORT_C gbooleang_time_val_from_iso8601(const gchar *iso_date,
GTimeVal *time_
)

g_time_val_from_iso8601: : an ISO 8601 encoded date string : a GTimeVal

Converts a string containing an ISO 8601 encoded date and time to a GTimeVal and puts it into .

Return value: TRUE if the conversion was successful.

Since: 2.12

g_time_val_to_iso8601 ( GTimeVal * )

IMPORT_C gchar *g_time_val_to_iso8601(GTimeVal *time_)

g_time_val_to_iso8601: : a GTimeVal

Converts into an ISO 8601 encoded string, relative to the Coordinated Universal Time (UTC).

Return value: a newly allocated string containing an ISO 8601 date

Since: 2.12