Stopwatch(float precision time)

From Second Life Wiki

Second Life Wiki > Stopwatch(float precision time)
Jump to: navigation, search

Template:Needs Translation/LSL/de Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/fr Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ja Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Image:Emblem-important-yellow.png LSL Feature Request
The described event does not exist. This article is a feature request.

Contents

Description

Event: stopwatch( float milli_seconds ){ ; }
REQUEST Event ID
Delay

stopwatch(float precision_time) Should work like timer() and react to llSetTimerEvent(float time), but with higer precision.

• float milli_seconds undefined

Specification

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

Caveats

This new event would probably have to be executed client-side to work. Please comment! Maybe necessary to also implement llSetStopwatch(float milli_seconds) to trigger this event, and llSetStopwatch(0) to stop the event.

Examples

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