Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include "timer.h"
  2.  
  3. FILE * timerFP = stdout;
  4.  
  5. int timerCount = 0;
  6.  
  7. double time_Master = 0.0;
  8. static tsc_type tsc_Master;
  9.  
  10. void Timer_Start(void)
  11. {
  12. readTSC(tsc_Master);
  13. }
  14. void Timer_Stop(void)
  15. {
  16. tsc_type tsc_Master2;
  17. readTSC(tsc_Master2);
  18. time_Master += diffTSC(tsc_Master,tsc_Master2);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement