gi-glib-0.2.46.14: GLib bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Structs.TimeVal

Contents

Description

Represents a precise time, with seconds and microseconds. Similar to the struct timeval returned by the gettimeofday() UNIX system call.

GLib is attempting to unify around the use of 64bit integers to represent microsecond-precision time. As such, this type will be removed from a future version of GLib.

Synopsis

Exported types

newtype TimeVal Source

Constructors

TimeVal (ForeignPtr TimeVal) 

Instances

(~) AttrOpTag tag AttrSet => Constructible TimeVal tag 
((~) * signature (m Text), MonadIO m) => MethodInfo * TimeValToIso8601MethodInfo TimeVal signature 
((~) * signature (CLong -> m ()), MonadIO m) => MethodInfo * TimeValAddMethodInfo TimeVal signature 
((~) * info (ResolveTimeValMethod t TimeVal), MethodInfo * info TimeVal p) => IsLabelProxy t (TimeVal -> p) 
type AttributeList TimeVal 

newZeroTimeVal :: MonadIO m => m TimeVal Source

Construct a TimeVal struct initialized to zero.

Methods

timeValAdd

data TimeValAddMethodInfo Source

Instances

((~) * signature (CLong -> m ()), MonadIO m) => MethodInfo * TimeValAddMethodInfo TimeVal signature 

timeValFromIso8601

timeValToIso8601

data TimeValToIso8601MethodInfo Source

Instances

((~) * signature (m Text), MonadIO m) => MethodInfo * TimeValToIso8601MethodInfo TimeVal signature 

Properties

TvSec

TvUsec