Filter löschen
Filter löschen

if there is startat, is there also stopat?

1 Ansicht (letzte 30 Tage)
Kent Cabarle
Kent Cabarle am 7 Feb. 2011
why is there a startat function for timer, but there is none for stopping (such as stopat *if there's any) ?
thank you..

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 7 Feb. 2011
Because it is trivial to write your own?
stopat = @(Timer,stoptime) startat(timer('StartFcn', @(src,evt) stop(Timer)), stoptime);
  9 Kommentare
Kent Cabarle
Kent Cabarle am 7 Feb. 2011
Sir Walter, it works.. however, this warning went out..
*********************************************************
Warning: One or more timer objects were stopped before
deletion.
*********************************************************
The thing you said "not" times, maybe the result of that.. ^^ .. But still it worked.. thank you.. thumbs up..
Kent Cabarle
Kent Cabarle am 7 Feb. 2011
@Jiro: Thanks also for the sharing of idea..it was helpful.. Thank you.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by