from muselsl import record
import time

try:
    print("Recording EEG data... press Ctrl+C to stop.")
    while True:
        # each file = 5 min chunks (for safety); change as you like
        record(duration=300, filename=f"data/brain_{int(time.time())}.csv")
except KeyboardInterrupt:
    print("Stopped recording.")

