libcm is a C development framework with an emphasis on audio signal processing applications.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

cmTime.h 676B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #ifdef OS_OSX
  9. #include "osx/clock_gettime_stub.h"
  10. #endif
  11. #ifndef cmTime_h
  12. #define cmTime_h
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. //(
  17. typedef struct timespec cmTimeSpec_t;
  18. /*
  19. get the time
  20. */
  21. void cmTimeGet( cmTimeSpec_t* t );
  22. // Return the elapsed time (t1 - t0)
  23. // in microseconds
  24. unsigned cmTimeElapsedMicros
  25. (
  26. const
  27. cmTimeSpec_t*
  28. t0, //< ptr to start time
  29. const cmTimeSpec_t* t1 );// ptr to end time
  30. //)
  31. //}
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif