This video presentation is the fifteenth installment of the Essentials of MQX RTOS Application Development training course. In this session, you will be introduced to Time Services.
This training was created by Embedded Access Inc., a Freescale sponsored training provider and proven partner.
|Session 15 Course Line||Lab Outline|
First, watch the video for Session 15: Time Services.
Then, follow through with the interactive lab assignment below.
This lab has two parts. In the first part we will update the application to fetch the current time and store it in each health record when it is logged. Since the application does not automatically know the absolute current time it will represent the running time until it is updated. Two new shell commands will be added then, one to update the current date and the other to update the current time. The logs will then contain the absolute current time.The second part of the lab demonstrates how to measure a time interval. In this case we'll measure the time it takes to run the ISR associated with switch 1 and print it out.
The objective of this lab is to 1) learn how time is used and can be updated to represent the absolute time and 2) to learn how the time functions can be used to measure an interval such as the execution of a section of code.
Need more help? The full source code for this lab can be found in the 'Lab Source Code' folder here.