File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/tensorflow/lite/micro Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ limitations under the License.
27
27
28
28
#include " tensorflow/lite/micro/micro_time.h"
29
29
30
- #include " peripherals/utility.h "
31
-
32
- #if defined(TF_LITE_USE_CTIME)
30
+ #if !defined(TF_LITE_USE_CTIME)
31
+ # include < Arduino.h >
32
+ #else
33
33
#include < ctime>
34
34
#endif
35
35
@@ -47,7 +47,7 @@ uint32_t ticks_per_second() { return 1000000; }
47
47
// required for a platform to support Tensorflow Lite for Microcontrollers
48
48
// profiling. This returns 0 by default because timing is an optional feature
49
49
// that builds without errors on platforms that do not need it.
50
- uint32_t GetCurrentTimeTicks () { return peripherals::MicrosecondsCounter (); }
50
+ uint32_t GetCurrentTimeTicks () { return micros (); }
51
51
52
52
#else // defined(TF_LITE_USE_CTIME)
53
53
You can’t perform that action at this time.
0 commit comments