hermann on Tue, 04 Jul 2023 17:31:46 +0200


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

Re: Question on "assert()" implementation in GP


On 2023-07-04 15:48, Denis Simon wrote:
Hi Hermann,

Instead of ##, you can use gettime() and getabstime().

Denis SIMON.

Thanks Denis,

that does exactly what I need.
According 3.2.25 gettime() doc first gettime call sets timer to 0.


pi@pi400-64:~ $ cat t.gp
gettime();
print(#digits(42^1234567));
print(Str(gettime())"ms");
\q
pi@pi400-64:~ $
pi@pi400-64:~ $ gp -q t.gp
2004011
1746ms
pi@pi400-64:~ $


Regards,

Hermann.