Package ch.bailu.gtk.glib
Class TimeVal
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.glib.TimeVal
- All Implemented Interfaces:
PointerInterface
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 64-bit integers to
represent microsecond-precision time. As such, this type will be
removed from a future version of GLib. A consequence of using `glong` for
`tv_sec` is that on 32-bit systems `GTimeVal` is subject to the year 2038
problem.
Similar to the struct timeval returned by the `gettimeofday()`
UNIX system call.
GLib is attempting to unify around the use of 64-bit integers to
represent microsecond-precision time. As such, this type will be
removed from a future version of GLib. A consequence of using `glong` for
`tv_sec` is that on 32-bit systems `GTimeVal` is subject to the year 2038
problem.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerlongsecondslongmicrosecondsvoidsetFieldTvSec(long tv_sec) secondsvoidsetFieldTvUsec(long tv_usec) microsecondsMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
TV_SEC
seconds- See Also:
-
TV_USEC
microseconds- See Also:
-
-
Constructor Details
-
TimeVal
-
TimeVal
public TimeVal()
-
-
Method Details
-
getClassHandler
-
setFieldTvSec
public void setFieldTvSec(long tv_sec) seconds -
getFieldTvSec
public long getFieldTvSec()seconds -
setFieldTvUsec
public void setFieldTvUsec(long tv_usec) microseconds -
getFieldTvUsec
public long getFieldTvUsec()microseconds
-