author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Sat, 21 Aug 2021 10:54:13 +0200 | |
branch | svghmi |
changeset 3296 | 3bcd5ec67521 |
parent 3295 | 0375d801fff7 |
child 3297 | 7e59bd180bc6 |
--- a/targets/Win32/plc_Win32_main.c Tue Aug 17 12:29:36 2021 +0200 +++ b/targets/Win32/plc_Win32_main.c Sat Aug 21 10:54:13 2021 +0200 @@ -26,10 +26,10 @@ return res; } -struct _timeb timetmp; +struct timeb timetmp; void PLC_GetTime(IEC_TIME *CURRENT_TIME) { - _ftime(&timetmp); + ftime(&timetmp); (*CURRENT_TIME).tv_sec = timetmp.time; (*CURRENT_TIME).tv_nsec = timetmp.millitm * 1000000;