sys_clock_gettime  [kernel/posix-timers.c]


Gets specific clock' time.

Arguments

eax 265
ebx Clock identifier. It may be one of the following values (as of kernel version 2.6.17):
CLOCK_REALTIME           - Systemwide realtime clock.
CLOCK_MONOTONIC          - Represents monotonic time. Cannot be set.
CLOCK_PROCESS_CPUTIME_ID - High resolution per process timer.
CLOCK_THREAD_CPUTIME_ID  - Thread specific timer.
ecx Pointer to a timespec structure:
struc timespec
{
tv_sec     rd 1 ; seconds
tv_nsec    rd 1 ; nanoseconds
}

Return values

If the system call succeeds the return value is 0
If the system call fails the return value is one of the following errno values:

-EINVAL An invalid value in ebx was specified.
-EFAULT Cannot copy the structure specified by ecx to kernel space.

Remarks

n/a

Compatibility

n/a