cboswel / stopwatch

Embedded Systems Design Group Project
0 stars 0 forks source link

Rollover #4

Open cboswel opened 3 months ago

cboswel commented 3 months ago

At ther moment, the timer interrupt increments a counter that is arrely reset. This is stored as in unsigned integer. The maximum value is 2^32 which is 4294967295.

4294967295 ms / 1000 / 60s / 60 min / 24 hr = 49.7 days.

Pretty good for a stopwatch, but maybe we should in the report mention the implications of a roll over? Maybe talk about how we could mitigate that?

cboswel commented 2 months ago

Note that this is for a long, not an int!