blob: 0793eb0c0c6913db871ba7035baf7d96949a964a [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
kjellander3e6db232015-11-26 04:44:54 -080011#ifndef WEBRTC_MODULES_AUDIO_CODING_TEST_TIMEDTRACE_H_
12#define WEBRTC_MODULES_AUDIO_CODING_TEST_TIMEDTRACE_H_
niklase@google.com470e71d2011-07-07 08:21:25 +000013
andresp@webrtc.org262e6762014-09-04 13:28:48 +000014#include "webrtc/typedefs.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000015
pbos@webrtc.org12dc1a32013-08-05 16:22:53 +000016#include <stdio.h>
17#include <stdlib.h>
niklase@google.com470e71d2011-07-07 08:21:25 +000018
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000019class TimedTrace {
20 public:
21 TimedTrace();
22 ~TimedTrace();
niklase@google.com470e71d2011-07-07 08:21:25 +000023
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000024 void SetTimeEllapsed(double myTime);
25 double TimeEllapsed();
26 void Tick10Msec();
27 int16_t SetUp(char* fileName);
28 void TimedLogg(char* message);
niklase@google.com470e71d2011-07-07 08:21:25 +000029
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000030 private:
31 static double _timeEllapsedSec;
32 static FILE* _timedTraceFile;
niklase@google.com470e71d2011-07-07 08:21:25 +000033
34};
35
kjellander3e6db232015-11-26 04:44:54 -080036#endif // WEBRTC_MODULES_AUDIO_CODING_TEST_TIMEDTRACE_H_