Hi spike bush,
First, make sure you set up a SpikeMonitor for the input group (see Section 4.2.3 of Tutorial 4):
Then wrap the runNetwork loop in startRecording/stopRecording:
spkMonIn->startRecording();
for (int i=0; i<stim.getLength(); i++) {
// etc.
sim->runNetwork(1,0);
}
spkMonIn->stopRecording();
After that you have access to all the SpikeMonitor analysis methods, such as:
int numSilent = spkMonIn->getNumSilentNeurons();
Regarding your CUBA question: Yes, a single time step is 1ms.
Best,
Michael