Place this anywhere in your code (prolly triggered by a button or an event):
[[CCScheduler sharedScheduler] setTimeScale: timeScale];
For speeding up, timeScale should be greater than 1, while for slowing down timeScale should be less than 1 (like 0.5).