<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def do_gen(argdict):
    '''Generate the whole site.'''
    site = make_site_obj(argdict)
    try:
        st = time.time()
        site.generate()
        et = time.time()
        print "Generated Site in %f seconds."% (et-st)
    except ValueError as e: # pragma: no cover
        print "Cannot generate. You are not within a simplystatic \
tree and you didn't specify a directory."