[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SysClock.CanGetClock()
From: |
Gaius Mulley |
Subject: |
Re: SysClock.CanGetClock() |
Date: |
Sat, 05 Aug 2023 17:50:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Michael Riedl <udo-michael.riedl@t-online.de> writes:
> Gaius,
>
> can you please have a short check - my versions of the compiler now
> always seem to have a return value of "FALSE" for
> SysClock.CanGetClock();
>
> Just notices as I had update one test routine and noted that I was
> always testing against the same set of data - the random number
> generator uses a seed depended on the system time.
>
> Thanks
>
> Michael
>
> -----
>
> Shot check routine:
>
> MODULE TstSysClock;
>
> IMPORT SysClock;
> IMPORT STextIO;
>
> BEGIN
> STextIO.WriteLn;
> STextIO.WriteLn;
> IF SysClock.CanGetClock() THEN
> STextIO.WriteString(" clock can be read");
> ELSE
> STextIO.WriteString(" clock can NOT be read");
> END;
> STextIO.WriteLn;
> STextIO.WriteLn;
> END TstSysClock.
Hi Michael,
many thanks for the bug report and test code - all very useful. All
fixed in the latest gcc git. I've included a few test programs in the
regression testsuite - one of which is:
gcc/testsuite/gm2/iso/run/pass/m2date.mod
recreates the output of:
$ date
using ISO SysTime and wrapclock,
regards,
Gaius
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: SysClock.CanGetClock(),
Gaius Mulley <=