Returns the starting time and duration of the cooldown frame in milliseconds

Signature:

startTime, duration = Cooldown:GetCooldownTimes()

Returns:

  • startTime - Starting time of Cooldown (in milliseconds) (number)
  • duration - The total cooldown duration displayed by the frame (in milliseconds) (number)

Examples:

local startTime, duration = icon.cd:GetCooldownTimes()
print( string.format("%.0f", ((startTime + duration)/1000 - GetTime())/60) )