Jump to content
You are about to reply to a thread that has been inactive for 3182 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Posted

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?

Posted

llGetWallclock will only give you the time rounded to full seconds. Same with llGetUnixTimellGetTimestamp 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.

You are about to reply to a thread that has been inactive for 3182 days.

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
×
×
  • Create New...