Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 4 - NetSprocket / NetSprocket Reference
NetSprocket Functions / Utility Functions


NSpGetCurrentTimeStamp

You can use the NSpGetCurrentTimeStamp function to compare time stamps.

UInt32 NSpGetCurrentTimeStamp (
	NSpGameReference inGame);
inGame
An opaque reference to your game object.
function result
The time value in milliseconds.
DESCRIPTION
You can use this function to compare the time stamp of a message with the current time stamp to determine how long ago a message was sent. This value is only as accurate as the round-trip time to the application hosting the game. This is a normalized value established by the server. That is, anyone in the current game who calls this function will get the same value.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996