Marioni Unplugged Posted March 24, 2016 Posted March 24, 2016 Greetings coders! How does one go about timing a specific custom made function in realtime? I mean timing an event that's part of my script, preferably in milliseconds. Does one use llGetWallClock or such twice, and then simply subtract the 2 values? Or are then more advanced techniques outthere?
Rolig Loon Posted March 24, 2016 Posted March 24, 2016 llGetWallclock will only give you the time rounded to full seconds. Same with llGetUnixTime. llGetTimestamp is apparently accurate to the millisecond. Normally, though, I would use llResetTime and then read llGetTime to get a millisecond elapsed time later. None of those functions is affected by region performance, so they will give you time unaffected by local lag.
Marioni Unplugged Posted March 24, 2016 Author Posted March 24, 2016 So llResetTime and then read llGetTime to get a millisecond elapsed time later. Thank you, Rolig!
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now