public class LinuxTime extends Time
| Modifier and Type | Class and Description |
|---|---|
static interface |
LinuxTime.itimerspec
POSIX.1b structure for timer start values and intervals.
|
static interface |
LinuxTime.timer_t |
static interface |
LinuxTime.timer_tPointer |
Time.itimerval, Time.timespec, Time.timeval, Time.timezone, Time.tm| Constructor and Description |
|---|
LinuxTime() |
| Modifier and Type | Method and Description |
|---|---|
static int |
clock_getcpuclockid(int pid,
org.graalvm.nativeimage.c.type.CIntPointer clock_id)
Return clock ID for CPU-time clock.
|
static int |
clock_getres(int clock_id,
Time.timespec res)
Get resolution of clock CLOCK_ID.
|
static int |
clock_gettime(int clock_id,
Time.timespec tp)
Get current value of clock CLOCK_ID and store it in TP.
|
static int |
CLOCK_MONOTONIC()
Monotonic system-wide clock.
|
static int |
clock_nanosleep(int clock_id,
int flags,
Time.timespec req,
Time.timespec rem)
High-resolution sleep with the specified clock.
|
static int |
CLOCK_PROCESS_CPUTIME_ID()
High-resolution timer from the CPU.
|
static int |
CLOCK_REALTIME()
Identifier for system-wide realtime clock.
|
static int |
clock_settime(int clock_id,
Time.timespec tp)
Set clock CLOCK_ID to value TP.
|
static int |
CLOCK_THREAD_CPUTIME_ID()
Thread-specific CPU-time clock.
|
static int |
getdate_err()
Set to one of the following values to indicate an error.
|
static int |
getdate_r(org.graalvm.nativeimage.c.type.CCharPointer string,
Time.tm resbufp)
Since `getdate' is not reentrant because of the use of `getdate_err' and the static buffer to
return the result in, we provide a thread-safe variant.
|
static Time.tm |
getdate(org.graalvm.nativeimage.c.type.CCharPointer string)
Parse the given string as a date specification and return a value representing the value.
|
static int |
TIMER_ABSTIME()
Flag to indicate time is absolute.
|
static int |
timer_delete(LinuxTime.timer_t timerid)
Delete timer TIMERID.
|
static int |
timer_getoverrun(LinuxTime.timer_t timerid)
Get expiration overrun for timer TIMERID.
|
static int |
timer_gettime(LinuxTime.timer_t timerid,
LinuxTime.itimerspec value)
Get current value of timer TIMERID and store it in VALUE.
|
static int |
timer_settime(LinuxTime.timer_t timerid,
int flags,
LinuxTime.itimerspec value,
LinuxTime.itimerspec ovalue)
Set timer TIMERID to VALUE, returning old value in OVALUE.
|
static int |
timespec_get(Time.timespec ts,
int base)
Set TS to calendar time based in time base BASE.
|
adjtime, asctime_r, asctime, clock, CLOCKS_PER_SEC, ctime_r, ctime, difftime, futimes, futimesat, getitimer, gettimeofday, gmtime_r, gmtime, ITIMER_PROF, ITIMER_REAL, ITIMER_VIRTUAL, localtime_r, localtime, lutimes, mktime, nanosleep, setitimer, settimeofday, stime, strftime, strptime, time, utimespublic static int CLOCK_REALTIME()
public static int CLOCK_MONOTONIC()
public static int CLOCK_PROCESS_CPUTIME_ID()
public static int CLOCK_THREAD_CPUTIME_ID()
public static int TIMER_ABSTIME()
public static int clock_getres(int clock_id,
Time.timespec res)
public static int clock_gettime(int clock_id,
Time.timespec tp)
public static int clock_settime(int clock_id,
Time.timespec tp)
public static int clock_nanosleep(int clock_id,
int flags,
Time.timespec req,
Time.timespec rem)
public static int clock_getcpuclockid(int pid,
org.graalvm.nativeimage.c.type.CIntPointer clock_id)
public static int timer_delete(LinuxTime.timer_t timerid)
public static int timer_settime(LinuxTime.timer_t timerid, int flags, LinuxTime.itimerspec value, LinuxTime.itimerspec ovalue)
public static int timer_gettime(LinuxTime.timer_t timerid, LinuxTime.itimerspec value)
public static int timer_getoverrun(LinuxTime.timer_t timerid)
public static int timespec_get(Time.timespec ts, int base)
public static int getdate_err()
public static Time.tm getdate(org.graalvm.nativeimage.c.type.CCharPointer string)
public static int getdate_r(org.graalvm.nativeimage.c.type.CCharPointer string,
Time.tm resbufp)