September 10, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=335

           Summary: incorrect std.c.time.CLK_TCK value (Linux)
           Product: D
           Version: 0.166
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: patch
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: thomas-dloop@kuehne.cn


CLK_TCK's value is dependent on Linux's kernel configuration.

const clock_t CLK_TCK = 1000;

should be

/// The value for real clock ticks per second for the system.

version(Windows)

{

    const clock_t CLK_TCK = 1000;

}

else version (linux)

{

    const clock_t CLK_TCK = cast(clock_t) sysconf(2);

    private extern(C) int sysconf(int);

}

else

{

    static assert(0);

}


-- 

September 19, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=335


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla@digitalmars.com  2006-09-19 15:31 -------
Fixed in DMC 0.167.


--