If this is the first time or even recurring frequently, you need to see a doctor now.
No waiting. Many times, it's not cardiac but you never know. Even if previous episodes weren't cardiac, there's always the chance that the next one is cardiac and that can be catastrophic. It depends on your risk factors, other medical conditions, history, medications used, family history, etc.