A river of width 1 km is flowing with a speed of 1 km/h. A man can swim with a speed of 2 km/h in still water. If he wants to cross a river along the shortest path, then the time of crossing the river will be:
(a) 0.5 hours
(b) 1 hour
(c) 2 hours
(d) 4 hours