few cleanings under VSC

This commit is contained in:
dwarning 2024-10-21 18:14:02 +02:00
parent f58705b473
commit 416748bdf5
1 changed files with 1 additions and 3 deletions

View File

@ -82,7 +82,7 @@ void get_portable_time(PortableTime *pt) {
void get_portable_time(PortableTime *pt) { void get_portable_time(PortableTime *pt) {
struct timeb timenow; struct timeb timenow;
ftime(&timenow); ftime(&timenow);
pt->seconds = timenow.time; pt->seconds = (long int)timenow.time;
pt->milliseconds = timenow.millitm; pt->milliseconds = timenow.millitm;
} }
#endif #endif
@ -102,8 +102,6 @@ seconds(void)
{ {
#if defined HAVE_CLOCK_GETTIME || defined HAVE_GETTIMEOFDAY || defined HAVE_FTIME #if defined HAVE_CLOCK_GETTIME || defined HAVE_GETTIMEOFDAY || defined HAVE_FTIME
PortableTime timenow; PortableTime timenow;
PortableTime timebegin;
int sec, msec;
get_portable_time(&timenow); get_portable_time(&timenow);
return((double) timenow.seconds + (double) timenow.milliseconds / 1000.0); return((double) timenow.seconds + (double) timenow.milliseconds / 1000.0);