Skip to content

micros() doesn't include fractions of milliseconds. #14

Description

@WestfW

The timer0 interrupt code maintains t0_fract, but the micros() function only counts milliseconds plus timer count values, leaving out that fractional milliseconds that have elapsed, and thus producing incorrect results.

(This seems to be the only reason that the original Arduino code maintains both a millisecond count AND an overflow count :-( )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions