I am getting this now:

Traceback (most recent call last):
  File "mixed-poisson.py", line 3, in <module>
    import pypapi
  File "/home/jchang23/firedrake-deps/PyPAPI/pypapi/__init__.py", line 11, in <module>
    from pypapi.papi import get_cycles_time, get_real_cyc, get_real_usec
ImportError: cannot import name get_cycles_time



On Thu, Jul 16, 2015 at 9:30 AM, Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16/07/15 15:09, Justin Chang wrote:
> Lawrence
>
> 1) Okay that makes sense. Don't know why I didn't see this
> earlier.
>
> 2) Okay thanks,
>
> 3) The only reason I wanted that function was to get &real_time.
> Unless there's a more efficient way (or "firedrake" way) of getting
> this metric? In my case, I only want the time from SNESSolve()

You could just use time.time() from the python time library

I have also pushed an update to PyPAPI to wrap PAPI_get_real_cyc and
PAPI_get_real_usec, the latter of which will give you the equivalent
of real_time.

Cheers,

Lawrence
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJVp8ANAAoJECOc1kQ8PEYv8hIIANA4Ux1VL2+LKAgYGE0IPp4Z
xY1uFPMP1uEgr2S4gLl90Ws1SiFvn7w97IBQqqqia547Xiq2wTR8m1+Va2pY4nLT
O2306hJZxZMPm6ngi1xglfOk/Jxtp0CWbS6zhych2g066WmsrSKJwSx3FL8c25eR
qWTjMHyM5Kn7URHdnQNIGyvXIaM77xk+1uHwIY7PnNlCwodgLgnHWItRYxRlsvy0
gnFE9kSAgAA4XHnpcQ7Gundq2+JKeNwW5SG7orxFNRM1+ru7UHergj70byX9ZCS0
SmPCjHJEiI6FSyigp+BWg9RI46rU3VU9GBYNXRKCVAvvbtuPEzpb8mla8A6IJdY=
=Edfm
-----END PGP SIGNATURE-----

_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake