Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
blue11
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
blue11
13y ago
Everything looks like Eastern Europe in the 80s, except that, as many people noted already, nobody is smiling.
62.
▲
by
blue11
13y ago
Well, that much is obvious. But if you are going to truncate, you should be consistent. Always truncate towards 0, not sometimes towards 0 and sometimes towards infinity.
63.
▲
by
blue11
13y ago
Sorry to nitpick, but I believe the time difference code has an error of 1 millisecond 25% of the time: int64_t delta = tv2->tv_sec - tv1->tv_sec; return delta * 1000 + (tv2->tv_usec - tv1->tv_usec) / 1000; One