CrazyYak
Members
-
Joined
-
Last visited
Reputation Activity
-
CrazyYak reacted to Stealth22 in Measuring time lapsed during calloutsTimeSpan ts = date2 - date1;
int responseInSeconds = ts.TotalSeconds;
-
CrazyYak reacted to Albo1125 in Measuring time lapsed during calloutsThat's actually really smart, I used to just sleep a GameFiber but this is much more efficient
For the OP: just to clarify the above pseudocode a bit:
DateTime now = DateTime.Now; //when call is accepted //Wait until the player is at the location DateTime later = DateTime.Now; TimeSpan elapsedtime = later - now; int responsetime = (int)Math.Round(elapsedtime.TotalSeconds); Hope it helps