OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef TIMED_TRACE_H | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_TEST_TIMEDTRACE_H_ |
12 #define TIMED_TRACE_H | 12 #define WEBRTC_MODULES_AUDIO_CODING_TEST_TIMEDTRACE_H_ |
13 | 13 |
14 #include "webrtc/typedefs.h" | 14 #include "webrtc/typedefs.h" |
15 | 15 |
16 #include <stdio.h> | 16 #include <stdio.h> |
17 #include <stdlib.h> | 17 #include <stdlib.h> |
18 | 18 |
19 class TimedTrace { | 19 class TimedTrace { |
20 public: | 20 public: |
21 TimedTrace(); | 21 TimedTrace(); |
22 ~TimedTrace(); | 22 ~TimedTrace(); |
23 | 23 |
24 void SetTimeEllapsed(double myTime); | 24 void SetTimeEllapsed(double myTime); |
25 double TimeEllapsed(); | 25 double TimeEllapsed(); |
26 void Tick10Msec(); | 26 void Tick10Msec(); |
27 int16_t SetUp(char* fileName); | 27 int16_t SetUp(char* fileName); |
28 void TimedLogg(char* message); | 28 void TimedLogg(char* message); |
29 | 29 |
30 private: | 30 private: |
31 static double _timeEllapsedSec; | 31 static double _timeEllapsedSec; |
32 static FILE* _timedTraceFile; | 32 static FILE* _timedTraceFile; |
33 | 33 |
34 }; | 34 }; |
35 | 35 |
36 #endif | 36 #endif // WEBRTC_MODULES_AUDIO_CODING_TEST_TIMEDTRACE_H_ |
OLD | NEW |