MCPcopy Create free account
hub / github.com/NetHack/NetHack / timet_to_seconds

Function timet_to_seconds

src/allmain.c:986–992  ·  view source on GitHub ↗

convert from time_t to number of seconds */

Source from the content-addressed store, hash-verified

984
985/* convert from time_t to number of seconds */
986long
987timet_to_seconds(time_t ttim)
988{
989 /* for Unix-based and Posix-compliant systems, a cast to 'long' would
990 suffice but the C Standard doesn't require time_t to be that simple */
991 return timet_delta(ttim, (time_t) 0);
992}
993
994/* calculate the difference in seconds between two time_t values */
995long

Callers 2

writexlentryFunction · 0.85
livelog_addFunction · 0.85

Calls 1

timet_deltaFunction · 0.85

Tested by

no test coverage detected