1 /*
2  * Author: Copyright (C) Andrzej Surowiec 2012
3  * Copyright (c) 2012-2018 Nitrokey UG
4  *
5  * This file is part of Nitrokey App.
6  *
7  * Nitrokey App is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * any later version.
11  *
12  * Nitrokey App is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with Nitrokey App. If not, see <http://www.gnu.org/licenses/>.
19  *
20  * SPDX-License-Identifier: GPL-3.0
21  */
22 
23 #ifndef SLEEP_H
24 #define SLEEP_H
25 
26 #include <QThread>
27 
28 class Sleep : public QThread {
29 public:
sleep(unsigned long secs)30   static void sleep(unsigned long secs) { QThread::sleep(secs); }
msleep(unsigned long msecs)31   static void msleep(unsigned long msecs) { QThread::msleep(msecs); }
usleep(unsigned long usecs)32   static void usleep(unsigned long usecs) { QThread::usleep(usecs); }
33 };
34 
35 #endif // SLEEP_H
36