I'm having trouble understanding your request, but operation of input capture is pretty simple. When selected capture edge occurs, 1) contents of free running counter TCNT is transferred to capture register TCx, and 2) specific capture interrupt flag is set.