#1685: getCPUTime does not work in general
----------------------------------+-----------------------------------------
    Reporter:  [EMAIL PROTECTED]  |        Owner:            
        Type:  bug                |       Status:  closed    
    Priority:  normal             |    Milestone:  6.8       
   Component:  GHCi               |      Version:  6.7       
    Severity:  major              |   Resolution:  worksforme
    Keywords:                     |   Difficulty:  Unknown   
          Os:  Unknown            |     Testcase:            
Architecture:  Unknown            |  
----------------------------------+-----------------------------------------
Changes (by igloo):

  * resolution:  => worksforme
  * status:  new => closed

Comment:

 Again: Please do not set the milestone when filing bugs.

 See http://hackage.haskell.org/trac/ghc/wiki/ReportABug for details.

 getCPUTime looks fine to me. Note that not all systems will necessarily be
 able to provide timing information with as much accuracy as the Haskell
 type allows:

 {{{
 Prelude> :m + System.CPUTime Control.Monad Data.List
 Prelude Data.List Control.Monad System.CPUTime> do xs <- replicateM 10000
 getCPUTime; print $ all (head xs ==) xs; mapM_ print $ [ (head x, length
 x) | x <- group xs ]
 False
 (876054000000,2044)
 (880054000000,2411)
 (884055000000,2397)
 (888055000000,1829)
 (892055000000,1319)
 Prelude Data.List Control.Monad System.CPUTime>
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1685>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to