Definition
This idiom is used to express that something is certain to happen at some point in the near future.
If they continue to ignore environmental issues, it's only a matter of time before an environmental disaster occurs.
If this company does not improve its product quality, it's just a matter of time before it goes bankrupt.
With the continuous advancement of technology, it is only a matter of time before self-driving cars become widespread.