Difference between revisions of "GetTimeSecs"

From UODemo Wiki
Jump to: navigation, search
m
m
 
Line 3: Line 3:
 
This is a bug-fixed function as of UoDemo+ Publish 16.
 
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 is the number of seconds elapsed since January 1, 1970.
+
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.
 
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.

Latest revision as of 07:51, 13 August 2011

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.