#include #include #include //This program is used to record the delays between beats for use with win.cpp main() { char KeyPressed='s'; int lasttime=0; cout << "Tap the return key to the music! \nPress 'q' to stop\n\n"; while (KeyPressed != 'q') { KeyPressed = getch(); if (KeyPressed == ' ') { if (lasttime==0) lasttime=clock(); cout << (clock()-lasttime)<<"\n"; lasttime=clock(); } } cout << "\n\n"; system("pause"); }