View | Details | Raw Unified | Return to bug 901
Collapse All | Expand All

(-)e2fe1c30eb3a (+29 lines)
Added Link Here 
1
#include <iostream>
2
#include <vector>
3
#include <stdlib.h>
4
#include "ns3/mac48-address.h"
5
6
using namespace ns3;
7
8
int main (int argc, char *argv[])
9
{
10
    Mac48Address ad1, ad2;
11
12
    if (argc < 2)
13
    {
14
        std::cerr << "usage: bench-mac48 NUM_REPETITIONS" << std::endl;
15
        return 1;
16
    }
17
18
    int numRepetitions = atoi (argv[1]);
19
    
20
    volatile bool a;
21
    
22
    for (int repetition = 0; repetition < numRepetitions; ++repetition)
23
    {
24
        a = ad1 < ad2;
25
    }
26
27
    return 0;
28
}
29
(-)a/utils/wscript (+2 lines)
 Lines 19-21    Link Here 
19
                                 ['internet-stack', 'csma-cd', 'point-to-point'])
19
                                 ['internet-stack', 'csma-cd', 'point-to-point'])
20
    obj.source = 'print-introspected-doxygen.cc'
20
    obj.source = 'print-introspected-doxygen.cc'
21
21
22
    obj = bld.create_ns3_program('bench-mac48', ['node'])
23
    obj.source = 'bench-mac48.cc'

Return to bug 901