gcd

Returns seconds before Global Cooldown is reset or 0.

gcd() : integer

Example

if gcd() then
print ('Everything on cooldown!)
end

Note

This is based on GetSpellCooldown() and GetTime()