Normally if you want to do a timelapse with the Pi camera, you just use the raspistill command with the -tl parameter. However, Richard (aka the Average Man) wanted to do it programmatically so he could update an LCD screen during the process. If you want to do this yourself, check out his tutorial here.