MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / c_gettimeofday

Function c_gettimeofday

xs/sources/xsPlatforms.c:471–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469#endif /* _MSC_VER < 1800 */
470
471int c_gettimeofday(c_timeval *tp, struct c_timezone *tzp)
472{
473 struct _timeb tb;
474
475 _ftime(&tb);
476 if (tp != 0) {
477 tp->tv_sec = (long)tb.time;
478 tp->tv_usec = tb.millitm * 1000;
479 }
480 if (tzp != 0) {
481 tzp->tz_minuteswest = tb.timezone;
482 tzp->tz_dsttime = tb.dstflag;
483 }
484 return (0);
485}
486
487char *c_realpath(const char *path, char *real)
488{

Callers 12

readSensorFunction · 0.85
xs_time_ticksFunction · 0.85
xs_time_deltaFunction · 0.85
xs_time_ticksFunction · 0.85
xs_time_deltaFunction · 0.85
xs_time_ticksFunction · 0.85
xs_time_deltaFunction · 0.85
xst262.cFile · 0.85
fxDateNowFunction · 0.85
fxGetMicroSecondsFunction · 0.85
modMillisecondsFunction · 0.85
fxGetTicksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected