The phrase it is only a matter if time is used to say that something will certainly happen. Example: It is only a matter of time before he resigns.