Time-based sampling: Theory and an application to video reconstruction from events | Synapse