CORDET Framework - C2 Implementation
cordetfw/pustests/config/CrFwTime.c
1 
36 #include <stdlib.h>
37 #include "CrFwConstants.h"
38 #include "CrFwTime.h"
39 
40 #include <time.h> /* for time() */
41 #include <string.h> /* for memcpy() */
42 
47 /*-----------------------------------------------------------------------------------------*/
49  int now;
50  CrFwTimeStamp_t ts;
51  now = (int)time(NULL);
52  memcpy(&ts, &now, sizeof(int));
53  return ts;
54 }
55 
56 
Interface through which framework components access the current time.
Header file to define all invariant publicly available constants and types for the CORDET Framework...
CrFwTimeStamp_t CrFwGetCurrentTime()
Return the current time.
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