Translation

sf_timer.xhp bas_id941610739926687 help.text
English 7QhZU
Context English Chinese (Traditional) Actions
sf_timer.xhp
par_id971582734180676
help.text
Description
sf_timer.xhp
par_id911582734180676
help.text
Returned value
sf_timer.xhp
par_id301582734180676
help.text
Resumes the <literal>Timer</literal> if it has been suspended
sf_timer.xhp
par_id661582734180676
help.text
<literal>False</literal> if the timer is not suspended
sf_timer.xhp
par_id821582734649305
help.text
Terminates the <literal>Timer</literal> and discards its current property values, restarting as a new clean <literal>Timer</literal>
sf_timer.xhp
par_id761582734649305
help.text
<literal>False</literal> if the timer is inactive
sf_timer.xhp
par_id641582734802443
help.text
Starts a new clean timer
sf_timer.xhp
par_id921582734802443
help.text
<literal>False</literal> if the timer is already started
sf_timer.xhp
par_id81582734905507
help.text
Suspends a running timer
sf_timer.xhp
par_id661582734905507
help.text
<literal>False</literal> if the timer is not started or already suspended
sf_timer.xhp
par_id861582734996722
help.text
Stops a running timer
sf_timer.xhp
par_id381582734996722
help.text
<literal>False</literal> if the timer is neither started nor suspended
sf_timer.xhp
par_id731626871820490
help.text
The examples below in Basic and Python illustrate the use of the methods and properties in the <literal>Timer</literal> service.
sf_timer.xhp
bas_id141582735926821
help.text
'The time elapsed while the Dialog box is open will be counted as suspended time
sf_timer.xhp
bas_id901582735961725
help.text
'The time elapsed while the Dialog box is open will be counted as running time
sf_timer.xhp
bas_id941610739926687
help.text
'Shows the final time measurements
sf_timer.xhp
par_id281610740093006
help.text
If you call the <literal>Terminate</literal> method, subsequent calls for the <literal>Continue</literal> method will not resume time measurement. Similarly, after a Timer has been terminated, calling the <literal>Start</literal> method will restart it as if it were a clean new Timer.
sf_timer.xhp
par_id391626872019832
help.text
Beware that the <literal>Wait</literal> function in Basic takes in a duration argument in milliseconds whereas the <literal>sleep</literal> function in Python uses seconds in its argument.
sf_timer.xhp
hd_id431610989623086
help.text
Working with Multiple Timers
sf_timer.xhp
par_id741610989639201
help.text
It is possible to instantiate multiple <literal>Timer</literal> services in parallel, which gives flexibility in measuring time in different parts of the code.
sf_timer.xhp
par_id921610989722908
help.text
The following example illustrates how to create two <literal>Timer</literal> objects and start them separately.
sf_timer.xhp
bas_id481610989853679
help.text
'Starts myTimerA
sf_timer.xhp
bas_id331610989849501
help.text
'Starts myTimerB
sf_timer.xhp
bas_id931610989837747
help.text
'Terminate both timers
sf_ui.xhp
tit
help.text
ScriptForge.UI service
sf_ui.xhp
hd_id371587913266310
help.text
<variable id="UIService"><link href="text/sbasic/shared/03/sf_ui.xhp" name="ScriptForge.UI service"><literal>ScriptForge</literal>.<literal>UI</literal> service</link></variable>
sf_ui.xhp
par_id31587913266153
help.text
The UI (User Interface) service simplifies the identification and the manipulation of the different windows composing the whole %PRODUCTNAME application:
sf_ui.xhp
par_id591587913266547
help.text
Windows selection
sf_ui.xhp
par_id511587913266292
help.text
Windows moving and resizing
sf_ui.xhp
par_id51587913266596
help.text
Statusbar settings
sf_ui.xhp
par_id401599404339702
help.text
Display of a floating progress bar

Loading…

No matching activity found.
Browse all component changes

Glossary

English Chinese (Traditional)
No related strings found in the glossary.

String information

Context
sf_timer.xhp
bas_id941610739926687
help.text
Source string description
7QhZU
Source string location
sf_timer.xhp
String age
a year ago
Source string age
a year ago
Translation file
zh-TW/helpcontent2/source/text/sbasic/shared/03.po, string 3081