implement a function to detect mulitple links
[minor change] print the elapsed times