-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtime_test.hpp
49 lines (38 loc) · 1.54 KB
/
time_test.hpp
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
46
47
48
49
/***************************************************************************
tag: Peter Soetens Fri Feb 11 15:59:13 CET 2005 time_test.hpp
time_test.hpp - description
-------------------
begin : Fri February 11 2005
copyright : (C) 2005 Peter Soetens
email : [email protected]
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef TIMETEST_H
#define TIMETEST_H
#include <Time.hpp>
#include <os/TimeService.hpp>
#include <os/Timer.hpp>
#include <string>
#include <rtt-config.h>
class TimeTest
{
public:
RTT::os::TimeService* hbg;
double small_S, normal_S, long_S;
RTT::os::TimeService::ticks small_t, normal_t, long_t;
RTT::nsecs small_ns, normal_ns, long_ns;
TimeTest();
~TimeTest();
void testSecondsConversion();
void testTicksConversion();
void testTimeProgress();
void testTimers();
void testTimerPeriod();
};
#endif // TIMETEST_H