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

((~) * 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

((~) (TYPE Lifted) signature (m Text), MonadIO m) => MethodInfo (TYPE Lifted) TimeValToIso8601MethodInfo TimeVal signature Source 
((~) (TYPE Lifted) signature (Int64 -> m ()), MonadIO m) => MethodInfo (TYPE Lifted) TimeValAddMethodInfo TimeVal signature Source 

newZeroTimeVal :: MonadIO m => m TimeVal Source

Construct a TimeVal struct initialized to zero.

Methods

timeValAdd

data TimeValAddMethodInfo Source

Instances

((~) (TYPE Lifted) signature (Int64 -> m ()), MonadIO m) => MethodInfo (TYPE Lifted) TimeValAddMethodInfo TimeVal signature Source 

timeValFromIso8601

timeValToIso8601

Properties

TvSec

TvUsec