You most likely had a "tachy arrhythmia" or abnormal fast heart rate. If you heart was beating irregularly during this time it could have been atrial fibrillation. If your heart beat was regular it was most likely some kind of "supra ventricular tachycardia". Accurate diagnosis is possible if a tracing of your heart electric activity (EKG) can be recorded during such an episode. This can be done with tests like "Holter" monitoring or Event recorders.
thank you, it has happened 2 more times, is this a doctor visit in the making? Should I be worried? I kind of am worried that I will pass out, ie, while driving or something.