I can capture system time, minute and second information with 3DGS in real-time (i.e., sys_hours, sys_minutes, sys_seconds), but I want to get it in milliseconds as well. How can I do that?
Hi You need to use WINAPI functions here what i'm found (dont forget about SEARCH button!) SOURCE
Code
#include <default.c>
#include <stdio.h>
#include <windows.h>
typedef struct _SYSTEMTIME {
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME;
void main()
{
SYSTEMTIME st;
GetSystemTime(&st);
printf("The system time is: %02d:%02d:%02d:%02d",st.wHour, st.wMinute,st.wSecond, st.wMilliseconds);
}
Hi You need to use WINAPI functions here what i'm found (dont forget about SEARCH button!) SOURCE
Code
#include <default.c>
#include <stdio.h>
#include <windows.h>
typedef struct _SYSTEMTIME {
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME;
void main()
{
SYSTEMTIME st;
GetSystemTime(&st);
printf("The system time is: %02d:%02d:%02d:%02d",st.wHour, st.wMinute,st.wSecond, st.wMilliseconds);
}