From 4991c2996516b3226c37cde7ea4b05552e66277a Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Wed, 22 Apr 2015 07:51:27 -0700 Subject: syscall_emul: implement clock_gettime system call --- src/kern/linux/linux.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kern') diff --git a/src/kern/linux/linux.hh b/src/kern/linux/linux.hh index 5e929f1c0..475f9e438 100644 --- a/src/kern/linux/linux.hh +++ b/src/kern/linux/linux.hh @@ -130,6 +130,12 @@ class Linux : public OperatingSystem int64_t tv_usec; //!< microseconds }; + /// For clock_gettime(). + struct timespec { + time_t tv_sec; //!< seconds + int64_t tv_nsec; //!< nanoseconds + }; + /// Clock ticks per second, for times(). static const int M5_SC_CLK_TCK = 100; -- cgit v1.2.3