← Back to team overview

dolfin team mailing list archive

[Bug 628690] [NEW] Timing broken

 

Public bug reported:

Timing seems to be broken. Strange numbers are coming out from
std::clock(). The precision is very low with many trailing zeros.

The following should print something like 1.0 but it prints 0.0:

python -c "from dolfin import *; import time; tic(); time.sleep(1);
print toc()"

** Affects: dolfin
     Importance: Medium
         Status: Confirmed

** Changed in: dolfin
       Status: New => Confirmed

** Changed in: dolfin
   Importance: Undecided => Medium

-- 
Timing broken
https://bugs.launchpad.net/bugs/628690
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.

Status in DOLFIN: Confirmed

Bug description:
Timing seems to be broken. Strange numbers are coming out from std::clock(). The precision is very low with many trailing zeros.

The following should print something like 1.0 but it prints 0.0:

python -c "from dolfin import *; import time; tic(); time.sleep(1); print toc()"





Follow ups

References