MCPcopy Create free account
hub / github.com/FreeFem/FreeFem-sources / getTimeStr

Function getTimeStr

plugin/seq/cmaes.cpp:192–200  ·  view source on GitHub ↗

--------------------------------------------------------- */ ---------------- Functions: cmaes_t --------------------- */ --------------------------------------------------------- */

Source from the content-addressed store, hash-verified

190/* ---------------- Functions: cmaes_t --------------------- */
191/* --------------------------------------------------------- */
192static char *getTimeStr(void) {
193 time_t tm = time(nullptr);
194 static char s[33];
195
196 /* get time */
197 strncpy(s, ctime(&tm), 24); /* TODO: hopefully we read something useful */
198 s[24] = '\0'; /* cut the \n */
199 return s;
200}
201
202char *cmaes_SayHello(cmaes_t *t) {
203 /* write initial message */

Callers 2

cmaes_SayHelloFunction · 0.85
cmaes_WriteToFileAWFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected