blob: 237b329e77d9f293c5519a289b3025050f5e9146 [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
11#ifndef TIMED_TRACE_H
12#define TIMED_TRACE_H
13
14#include "typedefs.h"
15
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
36#endif