Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetHack/NetHack
/ getnow
Function
getnow
src/calendar.c:31–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
29
staticfn struct tm *getlt(void);
30
31
time_t
32
getnow(void)
33
{
34
time_t datetime = 0;
35
36
(void) time((TIME_type) &datetime);
37
return datetime;
38
}
39
40
staticfn struct tm *
41
getlt(void)
Callers
14
sys_random_seed
Function · 0.85
sys_random_seed
Function · 0.85
sys_random_seed
Function · 0.85
sys_random_seed
Function · 0.85
getlt
Function · 0.85
really_done
Function · 0.85
newgame
Function · 0.85
restgamestate
Function · 0.85
paniclog
Function · 0.85
livelog_add
Function · 0.85
savegamestate
Function · 0.85
fmt_elapsed_time
Function · 0.85
Calls
1
time
Function · 0.85
Tested by
no test coverage detected