Skip to content

Commit

Permalink
Change from microsecond to second/millisecond timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalentity committed Feb 11, 2018
1 parent 322ffe7 commit d9d904c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/build/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ void debugTracePrintf(bool synchronous, const char *format, ...)
return;

// Write timestamp
charCount = tfp_sprintf(buf, "[%10d] ", micros());
const timeMs_t timeMs = millis();
charCount = tfp_sprintf(buf, "[%6d.%03d] ", timeMs / 1000, timeMs % 1000);
bufPtr = &buf[charCount];

// Write message
Expand Down

0 comments on commit d9d904c

Please sign in to comment.