{{newin|[[0.9.0]]|090|type=function}}
Returns the average delta time (seconds per frame) over the last second.

== Function ==
=== Synopsis ===
<source lang="lua">
delta = love.timer.getAverageDelta( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|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 [[love.update|update]] and [[love.draw|draw]] each frame.
<source lang="lua">
function love.draw()
   local delta = love.timer.getAverageDelta()
   -- Display the frame time in milliseconds for convenience.
   -- A lower frame time means more frames per second.
   love.graphics.print(string.format("Average frame time: %.3f ms", 1000 * delta), 10, 10)
end 
</source>
== See Also ==
* [[parent::love.timer]]
* [[love.timer.getDelta]]
* [[love.timer.getFPS]]
[[Category:Functions]]
{{#set:Description=Returns the average delta time over the last second.}}
== Other Languages ==
{{i18n|love.timer.getAverageDelta}}