Hello Romain,
If you're using the Bpod state machine, all lick events are automatically recorded and time-stamped by the state machine. You'd simply have the state machine run a state (e.g. this) and the data will be returned when the state ends.
If you're using the port interface board with custom hardware, it would be helpful to know more about what you're trying to connect it to.
-Josh