Difference between revisions of "GetTimeSecs"

From UODemo Wiki
Jump to: navigation, search
(Created page with 'integer '''getTimeSecs'''(void); This function will the current system time (server time) in milliseconds. This is implemented by using the ''timeGetTime'' Windows Multimedia fu…')
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
integer '''getTimeSecs'''(void);
 
integer '''getTimeSecs'''(void);
  
This function will the current system time (server time) in milliseconds. This is implemented by using the ''timeGetTime'' Windows Multimedia function, therefor the system time is the time elapsed since Windows was started. Please refer to your Windows (MSDN) documentation for more details and remarks.
+
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]].
 
Return to the [[Command List]].

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.