webForumDet fria alternativet

gettimeofday till windows?

C/C++

0 svar · 275 visningar · startad av fnolis

Medlem sedan sep. 200162 inlägg
Frågan#1

Vad ska man använda i windows för att få ut precis den informationen som man får ut av gettimeofday(...)? Dvs:
seconds and microseconds since 00:00 Coordinated Universal Time (UTC), January 1, 1970

*********************************

SYNOPSIS
#include <sys/time.h>

int gettimeofday(struct timeval *tp, void *tzp);

--------------------------------------------------------------------------------

DESCRIPTION
The gettimeofday() function gets the current time, expressed as seconds and microseconds since 00:00 Coordinated Universal Time (UTC), January 1, 1970, and stores it in tp.

256 ms totalt · 4 externa anrop · v20260731065814-full.1dc6f849
122 ms — deklarationer (db)
0 ms — hämta statistik (cache)
132 ms — hämta tråd, inlägg och bilagor (db)
118 ms — ändringar (db)