
I was completing the 5 step quickstart guide http://www.haskell.org/haskellwiki/Haskell_in_5_steps When running the program though haskell appears to be not able to access time on windows 7. Would this be normal? C:\Users\RenshawFamily\Documents\Scripts\Haskell>time ./A +RTS -N2 The system cannot accept the time entered. Enter the new time: C:\Users\RenshawFamily\Documents\Scripts\Haskell>time A.exe +RTS -N2 The system cannot accept the time entered. Enter the new time: 14.13 A required privilege is not held by the client.

The `time` program runs another programs and tells you how much time was spent running it (wall time, user, and system time). This program doesn't exist on Windows, so you can ignore it. - Daniel On 2011-03-04 20:17:45 -0700, Sayth Renshaw said:
I was completing the 5 step quickstart guide http://www.haskell.org/haskellwiki/Haskell_in_5_steps
When running the program though haskell appears to be not able to access time on windows 7. Would this be normal?
C:\Users\RenshawFamily\Documents\Scripts\Haskell>time ./A +RTS -N2 The system cannot accept the time entered. Enter the new time:
C:\Users\RenshawFamily\Documents\Scripts\Haskell>time A.exe +RTS -N2 The system cannot accept the time entered. Enter the new time: 14.13 A required privilege is not held by the client.

On Sat, Mar 5, 2011 at 5:48 AM, Daniel Huckstep
The `time` program runs another programs and tells you how much time was spent running it (wall time, user, and system time).
This program doesn't exist on Windows, so you can ignore it.
Actually it does exist however it doesn't do the same thing as Unix "time" : it just allows one to show or modify the system clock. Of course this has absolutely nothing to do with Haskell and in fact to measure performance of an Haskell program it is enough to use the RTS to report those statistics : C:\Users\RenshawFamily\Documents\Scripts\Haskell>A.exe +RTS -N2 -sstderr should do the trick (note that you don't need time). Or a library like criterion for more precise and interesting benchmark (by the way if you use -N2 don't forget to compile your program with the --threaded option to use the parallel RTS). -- Jedaï
participants (3)
-
Chaddaï Fouché
-
Daniel Huckstep
-
Sayth Renshaw