getCPUTime doesn't work
I use GHC5.04.3 on windows XP.
I want to getCPUTime function to get a number used as
a random seed.
The getCPUTime works well in GHCi(always
increasing), but when
compiled by ghc, the return value of getCPUTime is
fixed to two
values.This can be demonstrated by:
import CPUTime
main = do
d<-getCPUTime
print d
Liu Junfeng
liujf2003@peoplemail.com.cn
2003-04-03
Trac metadata
| Trac field | Value |
|---|---|
| Version | 5.04.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedNoReason |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |