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