TEST.CXX

CygProfiler

test.cxx source

Project updated · 7 February 2007

Download raw test.cxx ↓


#include <iostream>

#include "cyg-profile.h"

using namespace std;

class test {
    int function1 (long l);
    int function2 (int i);
  public:
    int function3 (char c);
};

int
test::function1 (long l) {
  return l;
}

int
test::function2 (int i) {
  return test::function1 (i) + 1;
}

int
test::function3 (char c) {
  return test::function2 (c) + 1;
}

int main () {
  class test *ptest;

  cout << "Logfile: " << cygprofile_getfilename () << endl;

  cygprofile_enable();

  ptest = new test();

  return ptest->function3 (1);
}
test.cxx sourceUTF-8 · LOGIX.CZ

Find in Logix

Search page titles and descriptions. Esc closes.

A few handy keys

A little Borland, a little early desktop, a corner of the web to call home.

Pick a directory from the menu or tree. Use Find when you know what you’re after.

Tab / Shift+Tab
Move between controls
↑ / ↓ in menus
Choose an entry
← / → in menus
Switch directories
/
Find a page
Esc
Close menu or dialog
F1
Open this help

Prefer a different atmosphere? View has blue, grey, and green palettes.

No commands to learn. Just follow your curiosity.