MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ng_pptpgre_time

Function ng_pptpgre_time

freebsd/netgraph/ng_pptpgre.c:1276–1286  ·  view source on GitHub ↗

* Return the current time scaled & translated to our internally used format. */

Source from the content-addressed store, hash-verified

1274 * Return the current time scaled & translated to our internally used format.
1275 */
1276static pptptime_t
1277ng_pptpgre_time(void)
1278{
1279 struct timeval tv;
1280 pptptime_t t;
1281
1282 microuptime(&tv);
1283 t = (pptptime_t)tv.tv_sec * PPTP_TIME_SCALE;
1284 t += tv.tv_usec / (1000000 / PPTP_TIME_SCALE);
1285 return(t);
1286}

Callers 3

ng_pptpgre_xmitFunction · 0.85
ng_pptpgre_rcvdata_lowerFunction · 0.85

Calls 1

microuptimeFunction · 0.85

Tested by

no test coverage detected