Re: tetris: use monotonic clock for fall timeout

2017-08-12 Thread Scott Cheloha
1 week bump. -- Scott Cheloha > On Aug 5, 2017, at 8:25 PM, Scott Cheloha wrote: > > Hi, > > In tetris(6) we use gettimeofday(2) to determine (roughly) how > long we polled for user input. This then gets subtracted from > the time remaining until we drop the block another row. > > This shoul

tetris: use monotonic clock for fall timeout

2017-08-05 Thread Scott Cheloha
Hi, In tetris(6) we use gettimeofday(2) to determine (roughly) how long we polled for user input. This then gets subtracted from the time remaining until we drop the block another row. This should be computed with a monotonic clock instead, lest bullshit like clock drift rob you of that crucial