gi-glib-2.0.2: 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

WrappedPtr TimeVal Source # 

Methods

wrappedPtrCalloc :: IO (Ptr TimeVal)

wrappedPtrCopy :: Ptr TimeVal -> IO (Ptr TimeVal)

wrappedPtrFree :: Maybe (FunPtr (Ptr TimeVal -> IO ()))

(~) AttrOpTag tag AttrSet => Constructible TimeVal tag Source # 

Methods

new :: MonadIO m => (ForeignPtr TimeVal -> TimeVal) -> [AttrOp TimeVal tag] -> m TimeVal

((~) * info (ResolveTimeValMethod t TimeVal), MethodInfo * info TimeVal p) => IsLabel t (TimeVal -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> TimeVal -> p

((~) * info (ResolveTimeValMethod t TimeVal), MethodInfo * info TimeVal p) => IsLabelProxy t (TimeVal -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> TimeVal -> p

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

Methods

overloadedMethod :: MethodProxy TimeValToIso8601MethodInfo TimeVal -> signature -> s

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

Methods

overloadedMethod :: MethodProxy TimeValAddMethodInfo TimeVal -> signature -> s

type AttributeList TimeVal Source # 
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 Source # 

Methods

overloadedMethod :: MethodProxy TimeValAddMethodInfo TimeVal -> signature -> s

timeValAdd :: MonadIO m => TimeVal -> CLong -> m () Source #

timeValFromIso8601

timeValFromIso8601 :: MonadIO m => Text -> m (Bool, TimeVal) Source #

timeValToIso8601

data TimeValToIso8601MethodInfo Source #

Instances

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

Methods

overloadedMethod :: MethodProxy TimeValToIso8601MethodInfo TimeVal -> signature -> s

timeValToIso8601 :: MonadIO m => TimeVal -> m Text Source #

Properties

TvSec

timeValReadTvSec :: MonadIO m => TimeVal -> m CLong Source #

timeValTvSec :: AttrLabelProxy "tvSec" Source #

timeValWriteTvSec :: MonadIO m => TimeVal -> CLong -> m () Source #

TvUsec

timeValReadTvUsec :: MonadIO m => TimeVal -> m CLong Source #

timeValTvUsec :: AttrLabelProxy "tvUsec" Source #

timeValWriteTvUsec :: MonadIO m => TimeVal -> CLong -> m () Source #