'Measure time taken for any command in Mininet.'

def do_time(self, line):

    start = time.time()
    self.onecmd(line)
    elapsed = (time.time() - start)
    self.stdout.write(('***    Elapsed    time:    %0.6f    secs\n' % elapsed))
