File: Time.hs

package info (click to toggle)
haskell-sdl 0.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 376 kB
  • ctags: 3
  • sloc: haskell: 200; ansic: 18; makefile: 13
file content (22 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-----------------------------------------------------------------------------
-- |
-- Module      :  Graphics.UI.SDL.Time
-- Copyright   :  (c) David Himmelstrup 2005
-- License     :  BSD-like
--
-- Maintainer  :  lemmih@gmail.com
-- Stability   :  provisional
-- Portability :  portable
--
-----------------------------------------------------------------------------
module Graphics.UI.SDL.Time where


import Foreign

-- Uint32 SDL_GetTicks(void);
foreign import ccall unsafe "SDL_GetTicks" getTicks :: IO Word32

-- void SDL_Delay(Uint32 ms);
foreign import ccall unsafe "SDL_Delay" delay :: Word32 -> IO ()