blob: fd0790f073d52278d474011bce6e1c130220612c [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
16#include <cstdio>
17#include <cstdlib>
18
19
20class TimedTrace
21{
22public:
23 TimedTrace();
24 ~TimedTrace();
25
26 void SetTimeEllapsed(double myTime);
27 double TimeEllapsed();
28 void Tick10Msec();
pbos@webrtc.org0946a562013-04-09 00:28:06 +000029 int16_t SetUp(char* fileName);
niklase@google.com470e71d2011-07-07 08:21:25 +000030 void TimedLogg(char* message);
31
32private:
33 static double _timeEllapsedSec;
34 static FILE* _timedTraceFile;
35
36};
37
38#endif