Difference between revisions of "GetTimeSecs"
m |
m |
||
Line 1: | Line 1: | ||
integer '''getTimeSecs'''(void); | integer '''getTimeSecs'''(void); | ||
− | This function will return the current system time (server time) in milliseconds. This | + | 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. | ||
+ | |||
+ | 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]]. |
Revision as of 22:58, 25 June 2010
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 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.