simulator: Add nano-timer to datalog

This commit is contained in:
Phil Hord 2013-10-29 08:29:19 -04:00 committed by Markus Hitter
parent 3ff7e86728
commit 18c68b5fe4
1 changed files with 1 additions and 1 deletions

View File

@ -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();