diff -r e2fe1c30eb3a utils/bench-mac48.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/utils/bench-mac48.cc Thu Apr 29 14:56:16 2010 +0100 @@ -0,0 +1,29 @@ +#include +#include +#include +#include "ns3/mac48-address.h" + +using namespace ns3; + +int main (int argc, char *argv[]) +{ + Mac48Address ad1, ad2; + + if (argc < 2) + { + std::cerr << "usage: bench-mac48 NUM_REPETITIONS" << std::endl; + return 1; + } + + int numRepetitions = atoi (argv[1]); + + volatile bool a; + + for (int repetition = 0; repetition < numRepetitions; ++repetition) + { + a = ad1 < ad2; + } + + return 0; +} + diff -r e2fe1c30eb3a utils/wscript --- a/utils/wscript Sun Apr 25 11:37:50 2010 -0400 +++ b/utils/wscript Thu Apr 29 14:56:16 2010 +0100 @@ -19,3 +19,5 @@ ['internet-stack', 'csma-cd', 'point-to-point']) obj.source = 'print-introspected-doxygen.cc' + obj = bld.create_ns3_program('bench-mac48', ['node']) + obj.source = 'bench-mac48.cc'