Loïc Grenié on Sun, 14 Sep 2014 07:34:52 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: Josef Eschgfaeller <esg@unife.it>
- Subject: Re: gettime
- From: Loïc Grenié <loic.grenie@gmail.com>
- Date: Sun, 14 Sep 2014 07:34:44 +0200
- Cc: pari-users <pari-users@pari.math.u-bordeaux.fr>
- Delivery-date: Sun, 14 Sep 2014 07:34:52 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=em0GTBTm0FRktFV00M6BRrF1N48JX5bAOK1+eANfG6s=; b=p6xg0FLJ8IFlgGr4SjQ21BtxM+xDdryJiG6JhDrXsnON9SJhCQdFYABiwregJdZOuO yvQXeFMH6UOnCGWjhy0dN9Js3seSBcEDVuC7SHDrq4xEsDVG3W7eN6H0H5UIrS58LCEw IfUoSd3un5qim4gUYKqTpsh/0Kesmln7BWR9sSKCV/LtUh3/47ssvNdTGqU5THRxSSu0 yxnFPpo+Xn8bQ9or0x8j6SYX9qmMsMpLSNYtSDxr08i+lf6ImwK2OaG0a7qGX+Rdwvk+ IGGHn9eNa9/y2G4qJV8Wmyqy+vmDiPtKk7nTa+6DPbmDcL/WX6xS1aqFaAVkyTYDS3Py zuQw==
- In-reply-to: <CAFBvUaspET=G8hz=eG4kbf3sxL5fcxnU65xQCq3U-CkSTORL5g@mail.gmail.com>
- References: <CAFBvUaspET=G8hz=eG4kbf3sxL5fcxnU65xQCq3U-CkSTORL5g@mail.gmail.com>
2014-09-13 23:22 GMT+02:00 Josef Eschgfaeller <esg@unife.it>:
> python="python -c \"import time; print(time.time())\""
> tstring=externstr(python)
> t100=floor(100*eval(tstring))
> \\ 141064265237 (for example)
> --------------------------------------------------
> Can one do this inside of Pari/GP?
> For example in setting the random seed.
>
> gettime and getabstime give a relative time,
> which usually does not allow different
> experiments if one uses Pari/GP from
> a script file (since the interpreter is
> then initialized for each call and the
> relative times result more or less equal).
If you have a recent enough version of PARI/GP, then
walltime() is probably what you are looking for.
Hope this helps,
Loïc
time +%s.%N is cheaper than python
- Follow-Ups:
- Re: gettime
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- References:
- gettime
- From: Josef Eschgfaeller <esg@unife.it>