File: Objects_asMessage.cpp

package info (click to toggle)
atlas-cpp 0.5.98-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,652 kB
  • ctags: 2,284
  • sloc: sh: 8,305; cpp: 6,372; python: 1,471; makefile: 216
file content (18 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "timer.h"

#include <Atlas/Objects/RootOperation.h>

#include <iostream>

int main(int argc, char ** argv)
{
    Atlas::Objects::Operation::RootOperation op;
    Atlas::Message::Element message = Atlas::Message::MapType();

    TIME_ON;
    int i;
    for (i = 0; i < 1000000; ++i) {
        op->addToMessage(message.asMap());
    }
    TIME_OFF("Object to Message conversions");
}