MCPcopy Create free account
hub / github.com/SIPp/sipp / float2timer

Function float2timer

src/send_packets.c:83–94  ·  view source on GitHub ↗

* converts a float to a timeval structure */

Source from the content-addressed store, hash-verified

81 * converts a float to a timeval structure
82 */
83inline void
84float2timer(float time, struct timeval *tvp)
85{
86 float n;
87
88 n = time;
89
90 tvp->tv_sec = n;
91
92 n -= tvp->tv_sec;
93 tvp->tv_usec = n * 100000;
94}
95
96int parse_play_args(const char* filename, const char *basepath, pcap_pkts* pkts)
97{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected