dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #19440
Re: Timing broken?
On Monday August 30 2010 11:53:54 Anders Logg wrote:
> Is timing broken? It seems to be for me.
>
> Can anyone try the following:
>
> python -c "from dolfin import *; import time; tic(); time.sleep(1); print
> toc()"
>
> It should print out something like 1.0, but I get 0.0.
I get 0.0.
> std::clock() is giving very strange values.
Do you suggest that it is broken in std::clock and not in our wrapped version?
Johan
Follow ups
References