summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eca2c8e)
gettimeofday(tv);\r
sec := tv.tv_sec;\r
{$ifndef cpu64}\r
gettimeofday(tv);\r
sec := tv.tv_sec;\r
{$ifndef cpu64}\r
- if (sec < 0) then inc(sec,$100000000); //tv_sec is 32 bits\r
+ if (sec < -1) then inc(sec,$100000000); //tv_sec is 32 bits. allow -1 for invalid result\r
{$endif}\r
result := sec;\r
end;\r
{$endif}\r
result := sec;\r
end;\r