MCPcopy Create free account
hub / github.com/mininet/mininet / do_time

Method do_time

mininet/cli.py:378–383  ·  view source on GitHub ↗

Measure time taken for any command in Mininet.

( self, line )

Source from the content-addressed store, hash-verified

376 output( sw.dpctl( *args ) )
377
378 def do_time( self, line ):
379 "Measure time taken for any command in Mininet."
380 start = time.time()
381 self.onecmd(line)
382 elapsed = time.time() - start
383 self.stdout.write("*** Elapsed time: %0.6f secs\n" % elapsed)
384
385 def do_links( self, _line ):
386 "Report on links"

Callers

nothing calls this directly

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected