-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
45 lines (37 loc) · 1.33 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <QtGui>
#include "qmainwindow.h"
#include <QPushButton>
#include <QPalette>
#include <QLayout>
#include <QApplication>
#include <QGridLayout>
#include "mainwindow.h"
#include <QTime>
#include <QWidget>
/*
* L'application enregistre dans un fichier .txt l'historique des clicks du participant
* durant une seance de test. Le fichier présente une trace sous la forme:
* [Date, TYPE (AUDIO/VIDEO), code evenement].
* Le fichier de logs est enregistré sur le bureau sous le nom "Tempclicks_results.txt
*
* Code evenement
* - 1 Coupures Video - 4 Coupures
* - 2 Qualite Image - 5 Echo
* - 3 Délai avec la Voix - 6 Bruit
*/
int main(int argc, char **argv)
{
QApplication a(argc, argv);
MainWindow w;
//w.showMaximized();
w.showFullScreen();
w.setWindowTitle("test clinicien");
long int time1 = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
int time3 = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
double time4 = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
qDebug() << time1;
// qDebug() << time2;
qDebug() << time3;
qDebug() << time4;
return a.exec();
}