![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
elapsed_timer.h@136:2da626f30efa, 2015-09-14 (annotated)
- Committer:
- klauss
- Date:
- Mon Sep 14 14:05:43 2015 +0000
- Revision:
- 136:2da626f30efa
Adicionando funcionalidades de medi??o de tempo gasto em computa??es.; Criado fun??es especificar pra esta finalidade.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 136:2da626f30efa | 1 | %: ifndef __ELAPSED_TIMER_H__ |
klauss | 136:2da626f30efa | 2 | %: define __ELAPSED_TIMER_H__ |
klauss | 136:2da626f30efa | 3 | |
klauss | 136:2da626f30efa | 4 | %: include <stdint.h> |
klauss | 136:2da626f30efa | 5 | %: include <vz_stdio.h> |
klauss | 136:2da626f30efa | 6 | %: include "mbed.h" |
klauss | 136:2da626f30efa | 7 | |
klauss | 136:2da626f30efa | 8 | extern bool init_test; |
klauss | 136:2da626f30efa | 9 | extern bool end_test; |
klauss | 136:2da626f30efa | 10 | |
klauss | 136:2da626f30efa | 11 | extern bool init_test_mean; |
klauss | 136:2da626f30efa | 12 | extern bool end_test_mean; |
klauss | 136:2da626f30efa | 13 | |
klauss | 136:2da626f30efa | 14 | extern Timer elapsed_timer; |
klauss | 136:2da626f30efa | 15 | extern Timer elapsed_timer_mean; |
klauss | 136:2da626f30efa | 16 | |
klauss | 136:2da626f30efa | 17 | void elapsed_time_start ( void ); |
klauss | 136:2da626f30efa | 18 | int elapsed_time_end ( void ); |
klauss | 136:2da626f30efa | 19 | |
klauss | 136:2da626f30efa | 20 | void elapsed_time_mean_start ( void ); |
klauss | 136:2da626f30efa | 21 | void elapsed_time_mean_end ( void ); |
klauss | 136:2da626f30efa | 22 | |
klauss | 136:2da626f30efa | 23 | const uint16_t u16_ELAPSED_TIME_COUNT_TIMES = 60000; |
klauss | 136:2da626f30efa | 24 | |
klauss | 136:2da626f30efa | 25 | extern uint16_t u16Elapsed_time_count; |
klauss | 136:2da626f30efa | 26 | |
klauss | 136:2da626f30efa | 27 | extern uint64_t u64Elapsed_time_u_sum; |
klauss | 136:2da626f30efa | 28 | |
klauss | 136:2da626f30efa | 29 | %: endif |