Class TimeVal

All Implemented Interfaces:
PointerInterface

public class TimeVal extends Record
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.

https://docs.gtk.org/glib/struct.TimeVal.html

  • Field Details

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler 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