libcm is a C development framework with an emphasis on audio signal processing applications.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

cmTime.h 619B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //{ { label:cmTime
  2. // kw: [ time ] }
  3. //
  4. //(
  5. // This interface is used to read the systems high resolution timer and
  6. // calculate elapsed time.
  7. //)
  8. #ifndef cmTime_h
  9. #define cmTime_h
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. //(
  14. typedef struct timespec cmTimeSpec_t;
  15. /*
  16. get the time
  17. */
  18. void cmTimeGet( cmTimeSpec_t* t );
  19. // Return the elapsed time (t1 - t0)
  20. // in microseconds
  21. unsigned cmTimeElapsedMicros
  22. (
  23. const
  24. cmTimeSpec_t*
  25. t0, //< ptr to start time
  26. const cmTimeSpec_t* t1 );// ptr to end time
  27. //)
  28. //}
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif