Re: [PATCH] Win32 equivalent to GetTickCount systemcall (i386)

From: Arjan van de Ven
Date: Tue Dec 06 2005 - 05:44:00 EST


On Tue, 2005-12-06 at 11:36 +0100, David Engraf wrote:
> This patch adds a new systemcall on i386 architectures returning the jiffies
> value to the application.
> As a kernel developer you can use jiffies but from the user space there is
> no equivalent function which counts every millisecond like the Win32
> GetTickCount.

a few comments

1) jiffies are 64 bit not 32
2) jiffies are not a constant time, eg HZ is a config option,
exposing that internal counter to userspace sounds wrong, after
all what would it be used for
3) wouldn't it be better to expose a wallclock time thing which
has a constant unit of time between all kernels?

(and.. wait.. isn't that called gettimeofday() )


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/