TickMeter.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. //
  2. // This file is auto-generated. Please don't modify it!
  3. //
  4. #pragma once
  5. #ifdef __cplusplus
  6. //#import "opencv.hpp"
  7. #import "opencv2/core.hpp"
  8. #import "opencv2/core/utility.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. NS_ASSUME_NONNULL_BEGIN
  14. // C++: class TickMeter
  15. /**
  16. * a Class to measure passing time.
  17. *
  18. * The class computes passing time by counting the number of ticks per second. That is, the following code computes the
  19. * execution time in seconds:
  20. * SNIPPET: snippets/core_various.cpp TickMeter_total
  21. *
  22. * It is also possible to compute the average time over multiple runs:
  23. * SNIPPET: snippets/core_various.cpp TickMeter_average
  24. *
  25. * @see getTickCount, getTickFrequency
  26. *
  27. * Member of `Core`
  28. */
  29. CV_EXPORTS @interface TickMeter : NSObject
  30. #ifdef __cplusplus
  31. @property(readonly)cv::Ptr<cv::TickMeter> nativePtr;
  32. #endif
  33. #ifdef __cplusplus
  34. - (instancetype)initWithNativePtr:(cv::Ptr<cv::TickMeter>)nativePtr;
  35. + (instancetype)fromNative:(cv::Ptr<cv::TickMeter>)nativePtr;
  36. #endif
  37. #pragma mark - Methods
  38. //
  39. // cv::TickMeter::TickMeter()
  40. //
  41. - (instancetype)init;
  42. //
  43. // void cv::TickMeter::start()
  44. //
  45. - (void)start NS_SWIFT_NAME(start());
  46. //
  47. // void cv::TickMeter::stop()
  48. //
  49. - (void)stop NS_SWIFT_NAME(stop());
  50. //
  51. // int64 cv::TickMeter::getTimeTicks()
  52. //
  53. - (long)getTimeTicks NS_SWIFT_NAME(getTimeTicks());
  54. //
  55. // double cv::TickMeter::getTimeMicro()
  56. //
  57. - (double)getTimeMicro NS_SWIFT_NAME(getTimeMicro());
  58. //
  59. // double cv::TickMeter::getTimeMilli()
  60. //
  61. - (double)getTimeMilli NS_SWIFT_NAME(getTimeMilli());
  62. //
  63. // double cv::TickMeter::getTimeSec()
  64. //
  65. - (double)getTimeSec NS_SWIFT_NAME(getTimeSec());
  66. //
  67. // int64 cv::TickMeter::getCounter()
  68. //
  69. - (long)getCounter NS_SWIFT_NAME(getCounter());
  70. //
  71. // double cv::TickMeter::getFPS()
  72. //
  73. - (double)getFPS NS_SWIFT_NAME(getFPS());
  74. //
  75. // double cv::TickMeter::getAvgTimeSec()
  76. //
  77. - (double)getAvgTimeSec NS_SWIFT_NAME(getAvgTimeSec());
  78. //
  79. // double cv::TickMeter::getAvgTimeMilli()
  80. //
  81. - (double)getAvgTimeMilli NS_SWIFT_NAME(getAvgTimeMilli());
  82. //
  83. // void cv::TickMeter::reset()
  84. //
  85. - (void)reset NS_SWIFT_NAME(reset());
  86. @end
  87. NS_ASSUME_NONNULL_END