Cygwin with clock_gettime and CLOCK_MONOTONIC - gives always 0

Steve Kargl sgk@troutmask.apl.washington.edu
Fri Apr 12 02:27:00 GMT 2013


On Fri, Apr 12, 2013 at 01:17:07AM +0200, Angelo Graziosi wrote:
> Steve Kargl wrote
> 
> > My
> > disagreemnet is predicated on the stupidity of using a 10 line
> > example subroutine without actually inspecting what it does on
> > whatever OS that one chooses to use.
> 
> It is just because one has tested that code that these problems came to 
> light... :-)
> 

When testing, it would help if the results were properly
represented as your initial subject line was "Random seed
initialization".  It seems clear to at least me your testing
did not include actually inspecting what these two lines do:

   CALL SYSTEM_CLOCK(COUNT=clock)
   seed = clock + 37 * (/ (i-1), 1=1, n) /)

because your subject would have been "SYSTEM_CLOCK is broken
on cygwin".

If you want to see an actual issue with "Random seed initialization"
go read PR 52879.

-- 
Steve

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list