MCPcopy Create free account
hub / github.com/crownengine/crown / time

Function time

3rdparty/bx/src/crtnone.cpp:592–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590typedef int64_t time_t;
591
592extern "C" time_t time(time_t* _arg)
593{
594 timespec ts;
595 clock_gettime(0 /*CLOCK_REALTIME*/, &ts);
596 time_t result = ts.tv_sec;
597
598 if (NULL != _arg)
599 {
600 *_arg = result;
601 }
602
603 return result;
604}
605
606extern "C" void* realloc(void* _ptr, size_t _size)
607{

Callers 5

lib_os.cFile · 0.50
fpp_initdefinesFunction · 0.50
os_dateFunction · 0.50
os_timeFunction · 0.50

Calls 1

clock_gettimeFunction · 0.85

Tested by

no test coverage detected