{{newin|[[0.3.2]]|032|type=function}}
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 ===
<source lang="lua">
time = love.timer.getTime( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|time|The time in seconds. Given as a decimal, accurate to the microsecond.}}

== Examples ==
=== Checking how long something takes ===
<source lang="lua">
local start = love.timer.getTime()

-- Concatenate "bar" 1000 times.
local foo = ""
for _ = 1, 1000 do
	foo = foo .. "bar"
end

-- Resulting time difference in seconds. Multiplying it by 1000 gives us the value in milliseconds.
local result = love.timer.getTime() - start
print( string.format( "It took %.3f milliseconds to concatenate 'bar' 1000 times!", result * 1000 ))
</source>
== See Also ==
* [[parent::love.timer]]
[[Category:Functions]]
{{#set:Description=Returns the amount of time since some time in the past.}}
{{#set:Since=000}}
{{#set:PrettySince=0.3.2}}
== Other Languages ==
{{i18n|love.timer.getTime}}