gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] value of maxSecondParts in SysClock.def


From: Gaius Mulley
Subject: Re: [Gm2] value of maxSecondParts in SysClock.def
Date: Tue, 09 Feb 2016 10:38:22 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

"Riedl, Udo-Michael" <address@hidden> writes:

> Hallo,
>
> just noticed a small hurdle. In SysClock.def I find "CONST
> maxSecondParts = 1000000;"
> Value should be 100 on an Intel CPU based system, that's at least what
> the following tells me
>
> #include <stdio.h>
> #include <unistd.h>
> void main()
> {
>       long int ClkTck;
>       ClkTck = sysconf(_SC_CLK_TCK);
>       printf("\n\n %s %12ld\n\n","CLK_TCK = ",ClkTck);
> }
>
> The value is by sure OS / machine depended - maybe needs to be set different
> on different platform a compile time.
>
> Cheers
>
> Michael

Hi Michael,

interesting, I guess we cannot change the ISO definition module
constant.  However inside SysClock.mod via wraptime.c it should deliver
the fractional time in microseconds.  Is this not the case?  If not then
this is a bug and could/will be fixed by scaling the clock tick
appropriately.

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]