MCPcopy Create free account
hub / github.com/SmingHub/Sming / execute

Method execute

tests/HostTests/modules/Timers.cpp:43–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 void execute() override
44 {
45 MallocCount::setLogThreshold(0);
46 // MallocCount::enableLogging(true);
47
48 checkCallbackTimer<HardwareTimerTest>();
49 checkCallbackTimer<SimpleTimer>();
50 checkCallbackTimer<Timer>();
51
52#define SHOW_SIZE(Type) Serial << _F("sizeof(" #Type ") = ") << sizeof(Type) << endl
53
54 SHOW_SIZE(os_timer_t);
55 SHOW_SIZE(OsTimerApi);
56 SHOW_SIZE(SimpleTimer);
57 SHOW_SIZE(OsTimer64Api<Timer>);
58 SHOW_SIZE(Timer);
59 SHOW_SIZE(AutoDeleteTimer);
60 SHOW_SIZE(Timer1TestApi);
61 SHOW_SIZE(HardwareTimerTest);
62
63 timer1.initializeMs<500>(timer1Callback, this);
64 timer1.start();
65
66 Serial << _F("Waiting for timer1 callback test to complete") << endl;
67 pending();
68 }
69
70 void timer1complete()
71 {

Callers

nothing calls this directly

Calls 2

setLogThresholdFunction · 0.85
startMethod · 0.45

Tested by

no test coverage detected