record the inter-contact time