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