+0
StartFragment>

I would like to know the difference between "1" and "2".

1. It took some time to get used to working with each other.

2. It took some time getting use to working with each other.
+0
I see no real difference here. But it's 'getting used to'.
Comments  
This is actually a rather complicated topic. 'to get used to' is an infinitive form (to get), while 'getting used to' is a gerund (getting). There are large lists of verbs and situations that require either the infinitive or the gerund, and in some situations both can be used -- although, perhaps, with a slightly different meaning. An infinitive (the 'to' form) usually indicates an "abstract" process, while the gerund (the -ing form) indicates a more "real" process. You can read more about this here .

If I'm not mistaken, phrases such as "it takes xxx" take on an infinitive (to-form), except when used as a subject. I.e.:

It took some time to get used to working with each other.

but

Getting used to working with each other took some time.