| Modifier and Type | Class and Description |
|---|---|
static interface |
Time.itimerval
Type of the second argument to `getitimer' and the second and third arguments `setitimer'.
|
static interface |
Time.timespec
POSIX.1b structure for a time value.
|
static interface |
Time.timeval
A time value that is accurate to the nearest microsecond but also has a range of years.
|
static interface |
Time.timezone
Structure crudely representing a timezone.
|
static interface |
Time.tm
Used by other time functions.
|
| Constructor and Description |
|---|
Time() |
| Modifier and Type | Method and Description |
|---|---|
static int |
adjtime(Time.timeval delta,
Time.timeval olddelta)
Adjust the current time of day by the amount in DELTA.
|
static org.graalvm.nativeimage.c.type.CCharPointer |
asctime_r(Time.tm tp,
org.graalvm.nativeimage.c.type.CCharPointer buf)
Return in BUF a string of the form "Day Mon dd hh:mm:ss yyyy\n" that is the representation of
TP in this format.
|
static org.graalvm.nativeimage.c.type.CCharPointer |
asctime(Time.tm tp)
Return a string of the form "Day Mon dd hh:mm:ss yyyy\n" that is the representation of TP in
this format.
|
static long |
clock()
Time used by the program so far (user time + system time).
|
static int |
CLOCKS_PER_SEC()
ISO/IEC 9899:1990 7.12.1:
|
static org.graalvm.nativeimage.c.type.CCharPointer |
ctime_r(org.graalvm.word.PointerBase timer,
org.graalvm.nativeimage.c.type.CCharPointer buf)
Equivalent to `asctime_r (localtime_r (timer, *TMP*), buf)'.
|
static org.graalvm.nativeimage.c.type.CCharPointer |
ctime(org.graalvm.word.PointerBase timer)
Equivalent to `asctime (localtime (timer))'.
|
static double |
difftime(long time1,
long time0)
Return the difference between TIME1 and TIME0.
|
static int |
futimes(int fd,
Time.timeval tvp)
Same as `utimes', but takes an open file descriptor instead of a name.
|
static int |
futimesat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer file,
Time.timeval tvp)
Change the access time of FILE relative to FD to TVP[0] and the modification time of FILE to
TVP[1].
|
static int |
getitimer(int which,
Time.itimerval value)
Set *VALUE to the current setting of timer WHICH.
|
static int |
gettimeofday(Time.timeval tv,
Time.timezone tz)
Get the current time of day and timezone information, putting it into *TV and *TZ.
|
static Time.tm |
gmtime_r(org.graalvm.word.PointerBase timer,
Time.tm tp)
Return the `struct tm' representation of *TIMER in UTC, using *TP to store the result.
|
static Time.tm |
gmtime(org.graalvm.word.PointerBase timer)
Return the `struct tm' representation of *TIMER in Universal Coordinated Time (aka Greenwich
Mean Time).
|
static int |
ITIMER_PROF()
Timers run when the process is executing and when the system is executing on behalf of the
process.
|
static int |
ITIMER_REAL()
Timers run in real time.
|
static int |
ITIMER_VIRTUAL()
Timers run only when the process is executing.
|
static Time.tm |
localtime_r(org.graalvm.word.PointerBase timer,
Time.tm tp)
Return the `struct tm' representation of *TIMER in local time, using *TP to store the result.
|
static Time.tm |
localtime(org.graalvm.word.PointerBase timer)
Return the `struct tm' representation of *TIMER in the local timezone.
|
static int |
lutimes(org.graalvm.nativeimage.c.type.CCharPointer file,
Time.timeval tvp)
Same as `utimes', but does not follow symbolic links.
|
static long |
mktime(Time.tm tp)
Return the `long' representation of TP and normalize TP.
|
static int |
nanosleep(Time.timespec requested_time,
Time.timespec remaining)
Pause execution for a number of nanoseconds.
|
static int |
setitimer(int which,
Time.itimerval _new,
Time.itimerval old)
Set the timer WHICH to *NEW.
|
static int |
settimeofday(Time.timeval tv,
Time.timezone tz)
Set the current time of day and timezone information.
|
static int |
stime(org.graalvm.word.PointerBase when)
Set the system time to *WHEN.
|
static org.graalvm.word.UnsignedWord |
strftime(org.graalvm.nativeimage.c.type.CCharPointer s,
org.graalvm.word.UnsignedWord maxsize,
org.graalvm.nativeimage.c.type.CCharPointer format,
Time.tm tp)
Format TP into S according to FORMAT.
|
static org.graalvm.nativeimage.c.type.CCharPointer |
strptime(org.graalvm.nativeimage.c.type.CCharPointer s,
org.graalvm.nativeimage.c.type.CCharPointer fmt,
Time.tm tp)
Parse S according to FORMAT and store binary time information in TP.
|
static long |
time(org.graalvm.word.PointerBase timer)
Return the current time and put it in *TIMER if TIMER is not NULL.
|
static int |
utimes(org.graalvm.nativeimage.c.type.CCharPointer file,
Time.timeval tvp)
Change the access time of FILE to TVP[0] and the modification time of FILE to TVP[1].
|
public static int CLOCKS_PER_SEC()
CAE XSH, Issue 4, Version 2:
public static int gettimeofday(Time.timeval tv, Time.timezone tz)
public static int settimeofday(Time.timeval tv, Time.timezone tz)
public static int adjtime(Time.timeval delta, Time.timeval olddelta)
public static int ITIMER_REAL()
public static int ITIMER_VIRTUAL()
public static int ITIMER_PROF()
public static int getitimer(int which,
Time.itimerval value)
public static int setitimer(int which,
Time.itimerval _new,
Time.itimerval old)
public static int utimes(org.graalvm.nativeimage.c.type.CCharPointer file,
Time.timeval tvp)
public static int lutimes(org.graalvm.nativeimage.c.type.CCharPointer file,
Time.timeval tvp)
public static int futimes(int fd,
Time.timeval tvp)
public static int futimesat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer file,
Time.timeval tvp)
public static long clock()
public static long time(org.graalvm.word.PointerBase timer)
public static double difftime(long time1,
long time0)
public static long mktime(Time.tm tp)
public static org.graalvm.word.UnsignedWord strftime(org.graalvm.nativeimage.c.type.CCharPointer s,
org.graalvm.word.UnsignedWord maxsize,
org.graalvm.nativeimage.c.type.CCharPointer format,
Time.tm tp)
public static org.graalvm.nativeimage.c.type.CCharPointer strptime(org.graalvm.nativeimage.c.type.CCharPointer s,
org.graalvm.nativeimage.c.type.CCharPointer fmt,
Time.tm tp)
public static Time.tm gmtime(org.graalvm.word.PointerBase timer)
public static Time.tm localtime(org.graalvm.word.PointerBase timer)
public static Time.tm gmtime_r(org.graalvm.word.PointerBase timer, Time.tm tp)
public static Time.tm localtime_r(org.graalvm.word.PointerBase timer, Time.tm tp)
public static org.graalvm.nativeimage.c.type.CCharPointer asctime(Time.tm tp)
public static org.graalvm.nativeimage.c.type.CCharPointer ctime(org.graalvm.word.PointerBase timer)
public static org.graalvm.nativeimage.c.type.CCharPointer asctime_r(Time.tm tp, org.graalvm.nativeimage.c.type.CCharPointer buf)
public static org.graalvm.nativeimage.c.type.CCharPointer ctime_r(org.graalvm.word.PointerBase timer,
org.graalvm.nativeimage.c.type.CCharPointer buf)
public static int stime(org.graalvm.word.PointerBase when)
public static int nanosleep(Time.timespec requested_time, Time.timespec remaining)