Bill Allombert on Mon, 22 May 2023 08:52:36 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Intermediate time in MT environment
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Intermediate time in MT environment
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Mon, 22 May 2023 08:47:56 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1684738067; c=relaxed/relaxed; bh=/mosia/vqxxZ//AGgpzQK+0zKkrE+OdZBU4mSRyErFw=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=KibA2GDNSU47fnRE2FamUlNqaJekgbZmmwAOuwUDmxBaBdAwCqaIBhDOXNJIMPwv/PnmVutUueKuBuFmljBPE6zNiIyzabWqQo4PShaEeRTCXRUu8keSwWj4Wul1BziCHPWkbJV/wtou07ZYkRuM22YdJSLUrtZFsyqb6BaDsHbyAchTXLr+cX+mL7GIsSv6q41TvhTeCmPtkR7mW0/VtUB4yy/AcCSkb3lOaLVrQN8FtAVkdeZ1/57uVNh4ADIWraRkLLpfS4xyX6lSv6syfQ7higF6vtumZcLynSn0nTkcCqpmotpKgY8NovIJvNNF1t+/BnzKBW062flbUN761tSk7KsK23/m+5T9nhmPe5DYo8HTHqbTlo7nV5iSFFlQTcDjzMIGSSW7w+UMabpL8xdx9euDAITLMkoKODpk4EafP2ia02UmBZFtbK0pc6a5R9z1jwJkr2sP3ZpKYeHJ32FErKTtfegvm8jWtMb6zNdmB768elpJUfY+OCbzbfnIbWlHZqzWPT8/M7x9eQDjr53UBxKnbbwMpz96XDLOv6dPDDDXpDO/Qpd9kLFdh0rOMVHWR0NARNv2pJtX/Xl/cKnhy+qS9YAMXFm8h505P3EzQ0pM5A1BkOom2L6FCRtq4QCW40gaLGT9/LoU0BaeBVhx1BjAfnVFwGunWpBhhRk=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1684738067; cv=none; b=b8gb/glBROjSX2+ocw1m6/ynsmNWMS9+PVUYohFmJjiHwXbwkd+FbAhHgLHT5aE5QN8rSsA12ciGjymjsnERM1MFFsHlYhpaAz922SqyfW/gJSL3E/KoTnkj+DHWBZBxAl5S5zM6V6qkl+6O6EeE1JRPvs/k0cm26TiRyQ7NpbvQhEyzcXip1WCs4xmPoYrT9VZ8Cmw8ix3BAaAsQ4nwasOxAhX97NUokTTsPpoLkDPGT+L/R7TCGvvdbuw2fjG/PSzhM2hqgXiF9gRSTCwsp4Mq88Rirwf9fSIc4UD2sA7bYoFOk+0UGqMcEv6LzwqvHPz7o6vOdh6cY4R8XTc1jpxR2HCnorlqBmZXEDcYGi4eoG2pfleXNZ0jafyGPAhPOpQ5Nu2DBv59FH2fOqhQGbrwpV8Hke2gY8fzRZdoG8SYWVG15fDJNPMfrrdr+V8UluCCv6giw3i8u+Hdas0/UmIavG05lXX1rcqlTqaeo5G3s81sZbayQT8/nh7a8EfOgykB+mq3WRncEY4+hWIbCezZynX2XBNJm/nf3Gjb1qXd7Zsq9gXeCH1bUOV54mz/D96FXEg7SYEKdMeZHS9+jTOLJ4uN1+LG8p0Wch2JFAZixsvPR4VPdjJ/omsXcpib/SzKTE+HwKvsmTAU6RjhdVPtpdcR4wMgoQsi4URBb2Q=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Mon, 22 May 2023 08:52:36 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1684738067; bh=/mosia/vqxxZ//AGgpzQK+0zKkrE+OdZBU4mSRyErFw=; h=Date:From:To:Subject:References:In-Reply-To:From; b=FIFz/TAo7hLX2obx1byXcPTy+tRlYgzJs3Nabpmo2pqBD9KvbBsvpndVCAputlKUT GEUoeH93zwTexRA87+LlJX9b6xgk4l1HqR+DENGkqutwXBxXoPM4i/HOrIJIQBtvi1 TPbsWCCkVa4j2VfzIe1Sp7s1mwqxO7fM15NgDaFlF+c6iDwhZ3hKNKTUFNNV8CTw6L z/g1v8VD/ytgeGrnlvVa+bL7nGWFW/ndAY09Y1t5mnmFnUG6HCP56XErXdTL1tK4MG VS8UpfhLn5LA0ePUZLqYNfxE9dlhlCLlWKQT9HYj0mqU+StAq5bMhIG2ij14eBY7fQ dDcILZKyYBT7XSy1NCIPXhFb3V7xvSLKPbV1im2NZDFnqQVF/ZixaUAbwXJFtmOpL0 X3Ohmz0rsEgRqEQK1eau4lVRTEmLvm4ckHdp7PSbjO/ppGOnIy76tzxTgAOojGIFVx rYbbui6oa7zwoh1DjqJEVNKhkR7IQUOF5xTjwNezp2HtWdVSX9iDEcWrG/hoBEl6cd xJJsWO0H2EvdYfhbH1ohzUmrAXYQj8WGDCrvmcPxXmA3xjTcqZ60EL4yUV+rwRZpDu o/569FqbOdOy5RW4dOjWvSNIxiROtKys6uP57vazC+7jSSqf4JuhrXgNK841LUDLOs meACgBlBzhSESCuyCWbd6dXg=
- In-reply-to: <3d9b89f3-97bd-5d02-a44d-d623fd7ec1bb@filmsons.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <3d9b89f3-97bd-5d02-a44d-d623fd7ec1bb@filmsons.com>
On Mon, May 22, 2023 at 12:46:59AM +0200, Jean-Luc Arnaud wrote:
> Hi all,
>
> I'd like to know if there is a way to obtain intermediate CPU and real time
> in a MultiThreaded environment.
>
> For example:
>
> pareval([ ()->myfunc1;## , ()->myfunc2;## ])
>
> I know this does not work, I tested it!
You should use getabstime and getwalltime
time()=[getabstime(),getwalltime()]
export(time);
{
pareval([ ()->my(t=time());myfunc1;time()-t,
()->my(t=time());myfunc2;time()-t])
}
Cheers,
Bill.