Translation

sf_timer.xhp par_id301582734180676 help.text
English 6DJTP
Context English Chinese (Traditional) Actions
sf_timer.xhp
par_id301582733781498
help.text
Yes
sf_timer.xhp
par_id401582733781608
help.text
<literal>True</literal> when timer is started or suspended
sf_timer.xhp
par_id181582733781551
help.text
Yes
sf_timer.xhp
par_id161582733781328
help.text
<literal>True</literal> when timer is started and suspended
sf_timer.xhp
par_id651582733781874
help.text
Yes
sf_timer.xhp
par_id171582733781456
help.text
The actual time elapsed while suspended since start or between start and stop
sf_timer.xhp
par_id141582733781303
help.text
Yes
sf_timer.xhp
par_id411582733781932
help.text
The actual time elapsed since start or between start and stop (including suspensions and running time)
sf_timer.xhp
par_id9158273378151
help.text
Note that the <literal>TotalDuration</literal> property is equivalent to summing the <literal>Duration</literal> and <literal>SuspendDuration</literal> properties.
sf_timer.xhp
hd_id141582734141895
help.text
Methods
sf_timer.xhp
par_id291582734377752
help.text
All methods do not require arguments and return a <literal>Boolean</literal> value.
sf_timer.xhp
par_id311582734894257
help.text
If the returned value is <literal>False</literal>, then nothing happened.
sf_timer.xhp
par_id871582734180676
help.text
Name
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.

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
par_id301582734180676
help.text
Source string description
6DJTP
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 3068