25 #include <QDateTimeEdit>
26 #include <QHBoxLayout>
35 microseconds(new
armarx::gui::LeadingZeroSpinBox(6, 10))
37 dateTime->setDisplayFormat(
"yyyy-MM-dd HH:mm:ss");
38 microseconds->setRange(0, 1000 * 1000 - 1);
39 microseconds->setSingleStep(1);
41 microseconds->setValue(
42 static_cast<int>((QDateTime::currentMSecsSinceEpoch() % 1000) * 1000));
43 microseconds->setSuffix(
" µs");
45 auto* hlayout =
new QHBoxLayout();
47 hlayout->addWidget(dateTime);
48 hlayout->addWidget(
new QLabel(
"."));
49 hlayout->addWidget(microseconds);
62 seconds->setDecimals(6);
63 seconds->setSingleStep(0.1);
64 seconds->setRange(-1e6, 1e6);
65 seconds->setSuffix(
" s");
68 auto* hlayout =
new QHBoxLayout();
70 hlayout->addWidget(seconds);