return the server clock (in us) */
| 2203 | |
| 2204 | /* return the server clock (in us) */ |
| 2205 | static int64_t get_server_clock(HTTPContext *c) |
| 2206 | { |
| 2207 | /* compute current pts value from system time */ |
| 2208 | return (cur_time - c->start_time) * 1000; |
| 2209 | } |
| 2210 | |
| 2211 | /* return the estimated time at which the current packet must be sent |
| 2212 | (in us) */ |