sensor: window_orientation: fix tile_history_time overflow

tilt_history_time[200] is in uint32_t.
When time unit goes from usec to nsec, it overflows in 4.3sec.

Three ways to fix it:
1) change it to uint64_t and increase memory footprint by 0.8KB.
2) rewrite logic to represent time as sample interval.
3) spend a few cycles to convert time to msec internally

To minimize change and verification effort, I picked 3) (approximately).

Change-Id: Iab20d56f0983553f3cb9517f386427e74c4dd270
(cherry picked from commit 5c4f93e3d1243a34627ebf7f06543de90d74f339)
1 file changed
tree: 73c326836c60d3c634024d4e6d9754146bb1c1fa
  1. .gitignore
  2. CodingStandard.txt
  3. firmware/
  4. util/