rem: qDebug("Parse time: " + QString::number(t.secsTo(t2)) + "." + QString::number(t.msecsTo(t2) - t.secsTo(t2) * 1000));
add: cerr  << "Parse time: " << t.secsTo(t2) << "." << t.msecsTo(t2) - t.secsTo(t2) * 1000 << endl;
context: main(int argc, char ** argv){  if (argc != 2) {    qDebug("Usage: " + QString(argv[0]) + " <maildir path>");    exit(1);  }        char * buf = new char[1024];  QString path = argv[1] + QString("/cur");  QDir d(path);  d.setFilter(QDir::Files);  QStringList l(d.entryList());  QTime t(QTime::currentTime());  QStringList::ConstIterator it(l.begin());  for (; it != l.end(); ++it) {    QFile f(path + "/" + *it);    if (!f.open(IO_ReadOnly)) {      qDebug("Cannot open " + path + "/" + *it);      exit(1);    }    QCString msgBuf;    while (!f.atEnd()) {      f.readLine(buf, 1000);      msgBuf += buf;    }    RMM::RMessage m(msgBuf);    RMM::RText subject = m.envelope().subject();    RMM::RAddress sender = m.envelope().firstSender();    RMM::RDateTime date = m.envelope().date();  }  QTime t2(QTime::currentTime());  qDebug("Parse time: " + QString::number(t.secsTo(t2)) + "." + QString::number(t.msecsTo(t2) - t.secsTo(t2) * 1000));}