GetTimeSecs

From UODemo Wiki
Jump to: navigation, search

integer getTimeSecs(void);

This is a bug-fixed function as of UoDemo+ Publish 16.

This function will return the system time in seconds. This is implemented by using the time C Library function, therefor the time returned is the number of seconds elapsed since January 1, 1970.

When OSI ported their server code to Windows and merged it with the client code, they made a mistake and replaced the calls to time with calls to timeGetTime. Thus in the original demo and UoDemo+ up to Publish 15, this function will return the current system time (server time) in milliseconds. This was implemented by using the timeGetTime Windows Multimedia function, therefor the return time was the time elapsed since Windows was started. Please refer to your Windows (MSDN) documentation for more details and remarks.


Return to the Command List.