projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a4859
)
[project @ 2002-05-09 13:28:30 by simonmar]
author
simonmar
<unknown>
Thu, 9 May 2002 13:28:30 +0000
(13:28 +0000)
committer
simonmar
<unknown>
Thu, 9 May 2002 13:28:30 +0000
(13:28 +0000)
Add a type signature for getClockTime
System/Time.hsc
patch
|
blob
|
history
diff --git
a/System/Time.hsc
b/System/Time.hsc
index
32a677f
..
6d8a800
100644
(file)
--- a/
System/Time.hsc
+++ b/
System/Time.hsc
@@
-199,6
+199,7
@@
noTimeDiff = TimeDiff 0 0 0 0 0 0 0
-- -----------------------------------------------------------------------------
-- getClockTime returns the current time in its internal representation.
+getClockTime :: IO ClockTime
#if HAVE_GETTIMEOFDAY
getClockTime = do
allocaBytes (#const sizeof(struct timeval)) $ \ p_timeval -> do