import time, urllib2
def get_responses():
    urls = ['http://www.ucc.ie', 'http://www.dit.ie', 'http://www.ul.ie']
    start = time.time()
    print time.time()
    for url in urls:
        newTime = time.time()
        #print url
        resp = urllib2.urlopen(url)
        print resp.getcode()
        print 'It took ',time.time()-newTime,' seconds to get a reply from',url
    print "Total time: %s" % (time.time()-start)

get_responses()
