HGamer3D-0.9.0: Toolset for the Haskell Game Programmer

Safe HaskellSafe
LanguageHaskell98

HGamer3D.Data.GameTime

Contents

Description

The time type for HGamer3D

Synopsis

Documentation

functions, to convert time into a value

sec :: TimeSpec -> Int Source #

time to seconds

msec :: TimeSpec -> Int Source #

time to milliseconds

usec :: TimeSpec -> Int Source #

time to microseconds

functions to create a time from a value

secT :: Int -> TimeSpec Source #

create time from seconds

msecT :: Int -> TimeSpec Source #

create time from milliseconds

usecT :: Int -> TimeSpec Source #

create time from microseconds

functions, which handle different aspects of time

getTime :: IO GameTime Source #

get current time

getThreadCPUTime :: IO GameTime Source #

get thread time

getProcessCPUTime :: IO GameTime Source #

get process cpu time

sleepFor :: GameTime -> IO () Source #

sleep for time intervall