Temporal Patterns of Activity in Neural Networks