This means something happens for the whole time another thing is happening. It's like saying 'while' or 'during' in English.
、。
While his mother was sleeping, the child was watching TV the whole time.
に、。
During the time I was in Japan, I never once got sick.
、。
During the summer vacation, I swam in the pool every day.
、。
While the president is speaking, please turn off your mobile phones.
、。
While I was young, I didn't think much about my own future.