Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a9c9450ce77e528ac57934620fe750d6d005f8fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*******************************************************************************
 * Copyright (c) 2013 protos software gmbh (http://www.protos.de).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * CONTRIBUTORS:
 * 		Thomas Schuetz (initial contribution)
 *
 *******************************************************************************/

#ifndef _ETTIME_H_
#define _ETTIME_H_

/**
 * etTime.h defines a generic interface for platform specific implementations of services around time
 */

#include "etDatatypes.h"

/**
 * time definition composed by the number of seconds and the number of nano seconds
 */
typedef struct etTime {
	etInt32 sec;
	etInt32 nSec;
} etTime;

/**
 * get current time from target hardware
 * this is no real world clock time and date
 * should be used only for relative time measurement
 * \param current target time as etTime*
 */
void getTimeFromTarget(etTime *t);

#endif /* _ETTIME_H_ */

Back to the top