I need to compute a time-average which is of the form
$$ \lim_\limits{T \to \infty} \frac{1}{T} \int_0^T \frac{\mathrm{d}t}{1+\sum_k c_k e^{i x_k t}} $$
where $x_k \in \mathbb{R}$, $c_k \in \mathbb{C}$ and the sum in the denominator is finite, $k=1,\ldots,K$.
I tried substituting $z = e^{it}$ and using the residue theorem but in the end I didn't get far. Is there some way of getting a closed form expression for the limit? Alternatively, I don't mind if I have to use numerical techniques, but preferably I'd do it on a limit where the convergence is more controlled.