Do the time properly.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16528 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
João Mesquita
2010-01-28 01:12:34 +00:00
parent f859964993
commit 8a3001e611
4 changed files with 16 additions and 2 deletions

View File

@@ -78,3 +78,9 @@ void Call::sendDTMF(QString digit)
QMessageBox::critical(0, QWidget::tr("DTMF Error"), QWidget::tr("There was an error sending DTMF, please report this bug."), QMessageBox::Ok);
}
}
QTime Call::getCurrentStateTime()
{
int now = QDateTime::fromTime_t(_answered_epoch).secsTo(QDateTime::currentDateTime());
return QTime::fromString(QString::number(now), "s");
}