simulator: Add nano-timer to datalog
This commit is contained in:
parent
3ff7e86728
commit
18c68b5fe4
|
|
@ -161,7 +161,7 @@ void WRITE(pin_t pin, bool s) {
|
|||
}
|
||||
|
||||
if (old_state != s) {
|
||||
uint32_t useconds = 0; // TODO
|
||||
uint32_t useconds = (uint32_t)sim_runtime_ns();
|
||||
record_pin(pin, s, useconds);
|
||||
#ifdef TRACE_ALL_PINS
|
||||
fgreen();
|
||||
|
|
|
|||
Loading…
Reference in New Issue