MCPcopy Index your code
hub / github.com/NetHack/NetHack / timet_delta

Function timet_delta

src/allmain.c:995–1001  ·  view source on GitHub ↗

calculate the difference in seconds between two time_t values */

Source from the content-addressed store, hash-verified

993
994/* calculate the difference in seconds between two time_t values */
995long
996timet_delta(time_t etim, time_t stim) /* end and start times */
997{
998 /* difftime() is a STDC routine which returns the number of seconds
999 between two time_t values as a 'double' */
1000 return (long) difftime(etim, stim);
1001}
1002
1003/*allmain.c*/

Callers 6

really_doneFunction · 0.85
timet_to_secondsFunction · 0.85
savegamestateFunction · 0.85
fmt_elapsed_timeFunction · 0.85
dosuspend_coreFunction · 0.85
dosh_coreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected