Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 56f2db35b2c09d846714ea871b6abcf1a4e4e324 (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
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************************
 * 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
 * @return current target time as etTime*
 */
void getTimeFromTarget(etTime *t);

/*
 * TODO: remove old API functions
int isTimeGreaterThanActualTime(const etTime *t);
etBool etTimer_executeNeeded(void);
uint32 getTimeBaseNS(void);

uint32 getTimeBaseUS(void);

uint32 getTimeBaseMS(void);
*/


#endif /* _ETTIME_H_ */

Back to the top