Difference between revisions of "love.timer"

m (Added deprecation support for listing fields)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Cung cấp giao diện cho đồng hồ của máy tính.
+
Provides high-resolution timing functionality.
== Hàm ==
+
== Functions ==
 
{{#ask: [[Category:Functions]] [[parent::love.timer]] [[Concept:Current]]
 
{{#ask: [[Category:Functions]] [[parent::love.timer]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 
| ?Description
 
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 
}}
 
}}
== Xem thêm ==
+
== See Also ==
* [[parent::love (Tiếng Việt)|love]]
+
* [[parent::love]]
 
[[Category:Modules]]
 
[[Category:Modules]]
{{#set:Description=Cung cấp giao diện cho đồng hồ của máy tính.}}
+
{{#set:Description=Provides high-resolution timing functionality.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
== Ngôn ngữ khác ==
+
== Other Languages ==
 
{{i18n|love.timer}}
 
{{i18n|love.timer}}

Latest revision as of 12:55, 1 January 2019

Provides high-resolution timing functionality.

Functions

love.timer.getAverageDelta Returns the average delta time over the last second. Added since 0.9.0
love.timer.getDelta Returns the time between the last two frames.
love.timer.getFPS Returns the current frames per second.
love.timer.getMicroTime Returns the value of a timer with microsecond precision. Removed in 0.9.0
love.timer.getTime Returns the amount of time since some time in the past. Added since 0.3.2
love.timer.sleep Pauses the current thread for the specified amount of time. Added since 0.2.1
love.timer.step Measures the time between two frames.

See Also


Other Languages