aboutsummaryrefslogtreecommitdiff
path: root/client/esp/timetest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/esp/timetest.cpp')
-rw-r--r--client/esp/timetest.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/client/esp/timetest.cpp b/client/esp/timetest.cpp
new file mode 100644
index 0000000..2e575f2
--- /dev/null
+++ b/client/esp/timetest.cpp
@@ -0,0 +1,18 @@
+#include "timetest.h"
+
+TimeTest::TimeTest(QObject *parent) : QObject(parent)
+{
+ timer = new QTimer(this);
+ connect(timer, SIGNAL(timeout()),this,SLOT(myfunction()));
+ timer->start(5000);
+}
+
+qint16 TimeTest::myfunction()
+{
+ QTime time = QTime::currentTime();
+ qint16 time_text = time.minute();
+
+ return time_text;
+
+
+}