Time coding protocols for quantum key distribution