Stopwatch(float precision time)

From Second Life Wiki
Revision as of 15:23, 24 September 2007 by Tjako Schumann (talk | contribs) (New page: {{LSL_Event |event_id |mode=request |func_sleep |func_energy |event=stopwatch |p1_type=float |p1_name=milli_seconds |p1_desc= |func_desc= stopwatch(float precision_time) Should work like ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

   'event_desc' can not be undefined

(Please define a value for 'event_desc' to describe the events actions.)
Emblem-important-yellow.png LSL Feature Request
The described event does not exist. This article is a feature request.

Description

Event: stopwatch( float milli_seconds ){ ; }

event_desc undefined

• float milli_seconds

Specification

Timer does not work on millisecons base, this new event state would. In the current timer event there is no high speed precision possible.

Caveats

This new event would have to be executed client-side to work. Please comment!

All Issues ~ Search JIRA for related Bugs

Examples

float milliseconds;
default
  {
   stopwatch(float precision_timer)
     {
       for (milliseconds==0;milliseconds<10;milliseconds +=0.001)
        {
          llSay(0,"Time passed in milliseconds: " + (string)milliseconds));
        }
      }
 }

Deep Notes

Signature