CORDET Framework - C2 Implementation
CrFwTime.c
Go to the documentation of this file.
1 
32 #include <stdlib.h>
33 #include "CrFwConstants.h"
34 #include "CrFwTime.h"
35 
38 
39 /*-----------------------------------------------------------------------------------------*/
41  dummyTime++;
42  return dummyTime;
43 }
44 
45 /*-----------------------------------------------------------------------------------------*/
47  return dummyTime;
48 }
49 
50 /*-----------------------------------------------------------------------------------------*/
52  return dummyTime;
53 }
54 
55 /*-----------------------------------------------------------------------------------------*/
57  return (CrFwTimeStamp_t) stdTime;
58 }
59 
60 /*-----------------------------------------------------------------------------------------*/
62  return (CrFwTime_t) timeStamp;
63 }
64 
65 
66 
Interface through which framework components access the current time.
CrFwTimeStamp_t CrFwGetCurrentTimeStamp()
Return the current time in the format used for the command and report time-stamp. ...
Definition: CrFwTime.c:40
Header file to define all invariant publicly available constants and types for the CORDET Framework...
CrFwTime_t CrFwGetCurrentTime()
Return the current application time in standard format.
Definition: CrFwTime.c:46
float CrFwTime_t
Type used for the application time.
static CrFwTimeStamp_t dummyTime
The CrFwGetCurrentTimeStamp function increments this counter and then returns its value...
Definition: CrFwTime.c:37
unsigned int CrFwTimeStamp_t
Type used for the time stamp of a command or report.
unsigned int CrFwTimeCyc_t
Type used for the number of elapsed cycles.
CrFwTimeCyc_t CrFwGetCurrentCycTime()
Return the current time in "cycle format" (integer number of cycles elapsed since some event)...
Definition: CrFwTime.c:51
CrFwTime_t CrFwTimeStampToStdTime(CrFwTimeStamp_t timeStamp)
Convert a time value from time-stamp format to standard time format.
Definition: CrFwTime.c:61
CrFwTimeStamp_t CrFwStdTimeToTimeStamp(CrFwTime_t stdTime)
Convert a time value from standard time format to time-stamp format.
Definition: CrFwTime.c:56
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved