##// END OF EJS Templates
Add thread protection for DataSeries...
Add thread protection for DataSeries Set Y range to varRange instead of graghRange where no data has been computed yet Set cosinus freq to 1htz

File last commit:

r487:ff7ed2ba3c52
r636:ad1efe843595
Show More
DateUtils.cpp
13 lines | 383 B | text/x-c | CppLexer
#include "Common/DateUtils.h"
QDateTime DateUtils::dateTime(double secs, Qt::TimeSpec timeSpec) noexcept
{
// Uses msecs to be Qt 4 compatible
return QDateTime::fromMSecsSinceEpoch(secs * 1000., timeSpec);
}
double DateUtils::secondsSinceEpoch(const QDateTime &dateTime) noexcept
{
// Uses msecs to be Qt 4 compatible
return dateTime.toMSecsSinceEpoch() / 1000.;
}