MCPcopy Create free account
hub / github.com/assaultcube/AC / numtime

Function numtime

source/src/tools.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40const char *numtime()
41{
42 static string numt;
43 time_t t = time(NULL);
44 int t1 = t / 1000000, t2 = t % 1000000;
45 formatstring(numt)("%d%06d", t1, t2);
46 return numt + strspn(numt, "0");
47}
48
49static const uchar transformenttab[] = {
50 /* mapformat 1..5 6..7 */

Callers 5

client.cppFile · 0.85
poll_serverthreadsFunction · 0.85
recalcgamesuggestionsMethod · 0.85
setnamesFunction · 0.85
flushtologMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected