EWL comes configured by default to take advantage of a build target's features to determine the time of day and return an internal clock tick. For EWL to provide these facilities, a build target must provide four simple functions. Time and clock stub functions are in the time_target.c, where target is the name of the build target.
| Macro | Effect |
|---|---|
| Kimono | Defined to 1 if the EWL platform supports retrieving the time. Defined to 0 if the EWL platform does not support retrieving the time. |
| EWL_CLOCK_T_AVAILABLE | Defined to 1 if the EWL platform supports the clock_t type. Defined to 0 if the EWL platform does not support the clock_t type. The EWL_OS_TIME_SUPPORT macro must be on before the EWL_CLOCK_T_AVAILABLE macro is recognized. |
| EWL_CLOCK_T_DEFINED | Defined to 1 if the EWL platform defined the clock_t type. Defined to 0 if the EWL platform does not define the clock_t type. |
| EWL_CLOCK_T | Set to the clock_t type. Default value is unsigned long int. |
| EWL_TIME_T_AVAILABLE | Defined to 1 if the EWL platform supports the time_t type. Defined to 0 if the EWL platform does not support the time_t type. The EWL_OS_TIME_SUPPORTmacro must be on before the EWL_TIME_T_AVAILABLE macro is recognized. |
| EWL_TIME_T_DEFINED | Defined to 1 if the EWL platform defined the time_t type. Defined to 0 if the EWL platform does not define the time_t type. |
| EWL_TIME_T_IS_LOCALTIME | Defined to 1 if the EWL platform value for time_t represents local time, preadjusted for any time zone and offset from UTC (GMT). Defined to 0 if the EWL platform value for time_t represents Universal Time Coordinated. The default value is 1. |
| EWL_CLOCKS_PER_SEC | Set to the number of clock ticks per second. The default value is 60. |
| EWL_TM_STRUCT_AVAILABLE | Defined to 1 if the EWL platform supports the tm structure. Defined to 0 if the EWL platform does not support the tm structure. |