love.thread.getThreads

love.thread.getThreads Available since LÖVE 0.7.0 and removed in LÖVE 0.9.0 This function is not supported in earlier or later versions. Get all threads. Function Synopsis threads = love.thread.getThreads( ) Arguments None. Returns table threads A table containing all threads indexed by their names. See Also love.thread

love.thread.newChannel

love.thread.newChannel Available since LÖVE 0.9.0 This function is not supported in earlier versions. Create a new unnamed thread channel. One use for them is to pass new unnamed channels to other threads via Channel:push on a named channel. Function Synopsis channel = love.thread.newChannel( ) Arguments None. Returns Channel channel The new Channel object. See Also love.thread Channel

love.thread.newThread

love.thread.newThread Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new Thread from a Lua file or FileData object. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis thread = love.thread.newThread( filename ) Arguments string filename The name of the Lua file to use as the source. Returns Thread thread A new Thread that has yet to be started. Function Available since LÖVE 0.9.0 This variant

love.threaderror

love.threaderror Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Callback function triggered when a Thread encounters an error. Function Synopsis love.threaderror( thread, errorstr ) Arguments Thread thread The thread which produced the error. string errorstr The error message. Returns Nothing. Example function love.load() mythread = love.thread.newThread("thread.lua") mythread:start() end   function love.threaderror(thread, errorstr) print("Thread

love.timer.getAverageDelta

love.timer.getAverageDelta Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the average delta time (seconds per frame) over the last second. Function Synopsis delta = love.timer.getAverageDelta( ) Arguments None. Returns number delta The average delta time over the last second. Examples Display text at the top left of the screen showing the average time taken to update and draw each frame. function love.draw() local delta = love.timer.getAverag

love.timer.getDelta

love.timer.getDelta Returns the time between the last two frames. Function Synopsis dt = love.timer.getDelta( ) Arguments None. Returns number dt The time passed (in seconds). See Also love.timer

love.timer.getFPS

love.timer.getFPS Returns the current frames per second. Function Synopsis fps = love.timer.getFPS( ) Arguments None. Returns number fps The current FPS. Examples Display text at the top left of the screen showing the current FPS. function love.draw() love.graphics.print("Current FPS: "..tostring(love.timer.getFPS( )), 10, 10) end See Also love.timer

love.timer.getMicroTime

love.timer.getMicroTime Removed in LÖVE 0.9.0 love.timer.getTime is now microsecond-accurate. Returns the value of a timer with an unspecified starting time. The time is accurate to the microsecond. Function Synopsis t = love.timer.getMicroTime( ) Arguments None. Returns number t The time passed in seconds. See Also love.timer love.timer.getTime

love.timer.getTime

love.timer.getTime Returns the value of a timer with an unspecified starting time. This function should only be used to calculate differences between points in time, as the starting time of the timer is unknown. Function Synopsis time = love.timer.getTime( ) Arguments None. Returns number time The time in seconds. Examples Checking how long something takes local start = love.timer.getTime()   -- Concatenate "bar" 1000 times. local foo = "" for _ = 1, 1000 do foo = foo .. "bar" end   -- Re

love.timer.sleep

love.timer.sleep Pauses the current thread for the specified amount of time. This function causes the entire thread to pause for the duration of the sleep. Graphics will not draw, input events will not trigger, code will not run, and the window will be unresponsive if you use this as "wait()" in the main thread. Use love.update or a Timer library for that instead. Function Available since LÖVE 0.8.0 This behaviour is not supported in earlier versions. Synopsis love.timer.sleep( s ) Argume