* Frontend version of TimestampDifferenceExceeds(), since we are not * linked with backend code. */
| 647 | * linked with backend code. |
| 648 | */ |
| 649 | bool |
| 650 | feTimestampDifferenceExceeds(TimestampTz start_time, |
| 651 | TimestampTz stop_time, |
| 652 | int msec) |
| 653 | { |
| 654 | TimestampTz diff = stop_time - start_time; |
| 655 | |
| 656 | return (diff >= msec * INT64CONST(1000)); |
| 657 | } |
| 658 | |
| 659 | /* |
| 660 | * Converts an int64 to network byte order. |
no outgoing calls
no test coverage detected