31 #if defined (HAVE_CONFIG_H)
35 #include <sys/resource.h>
37 #include <sys/times.h>
46 int status = gettimeofday (&tv, NULL);
64 long *usr_usec,
long *sys_usec)
68 int status = getrusage (RUSAGE_SELF, &ru);
80 *usr_sec = ru.ru_utime.tv_sec;
81 *usr_usec = ru.ru_utime.tv_usec;
83 *sys_sec = ru.ru_stime.tv_sec;
84 *sys_usec = ru.ru_stime.tv_usec;
92 long *usr_usec,
long *sys_usec,
93 long *maxrss,
long *ixrss,
long *idrss,
94 long *isrss,
long *minflt,
long *majflt,
95 long *nswap,
long *inblock,
long *oublock,
96 long *msgsnd,
long *msgrcv,
long *nsignals,
97 long *nvcsw,
long *nivcsw)
101 int status = getrusage (RUSAGE_SELF, &ru);
128 *usr_sec = ru.ru_utime.tv_sec;
129 *usr_usec = ru.ru_utime.tv_usec;
131 *sys_sec = ru.ru_stime.tv_sec;
132 *sys_usec = ru.ru_stime.tv_usec;
134 *maxrss = ru.ru_maxrss;
135 *ixrss = ru.ru_ixrss;
136 *idrss = ru.ru_idrss;
137 *isrss = ru.ru_isrss;
138 *minflt = ru.ru_minflt;
139 *majflt = ru.ru_majflt;
140 *nswap = ru.ru_nswap;
141 *inblock = ru.ru_inblock;
142 *oublock = ru.ru_oublock;
143 *msgsnd = ru.ru_msgsnd;
144 *msgrcv = ru.ru_msgrcv;
145 *nsignals = ru.ru_nsignals;
146 *nvcsw = ru.ru_nvcsw;
147 *nivcsw = ru.ru_nivcsw;
160 #include "gethrxtime.h"
165 return gethrxtime ();
int octave_cpu_time(time_t *usr_sec, time_t *sys_sec, long *usr_usec, long *sys_usec)
int octave_gettimeofday_wrapper(time_t *sec, long *usec)
time_t octave_mktime_wrapper(struct tm *tp)
long long octave_gettime_ns_wrapper(void)
int octave_getrusage_wrapper(time_t *usr_sec, time_t *sys_sec, long *usr_usec, long *sys_usec, long *maxrss, long *ixrss, long *idrss, long *isrss, long *minflt, long *majflt, long *nswap, long *inblock, long *oublock, long *msgsnd, long *msgrcv, long *nsignals, long *nvcsw, long *nivcsw)