File: timing.h

package info (click to toggle)
libmems 1.6.0%2B4725-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,148 kB
  • sloc: cpp: 21,579; ansic: 4,313; xml: 115; makefile: 107; sh: 26
file content (24 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _timing_h_
#define _timing_h_

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

// an opaque timer type.
typedef struct dmtimer_s dmtimer_t;

// starts the timer
dmtimer_t * StartTimer();

// reads the timer (msec)
unsigned int ReadTimer( dmtimer_t * t );

// stops the timer.
void StopTimer( dmtimer_t * t );

// initialize the timing code.
void InitTime();


#endif /* _timing_h_ */