fork/livesplit-core
git clone https://git.julia.blue/fork/livesplit-core
ee16b86
v0.11.0
1<!doctype html > 2< html class ="default no-js "> 3< head > 4< meta charset ="utf-8 "> 5< meta http-equiv ="X-UA-Compatible "content ="IE=edge "> 6< title > Timer | livesplit</ title > 7< meta name ="description "content =""> 8< meta name ="viewport "content ="width=device-width, initial-scale=1 "> 9< link rel ="stylesheet "href ="../assets/css/main.css "> 10</ head > 11< body > 12< header > 13< div class ="tsd-page-toolbar "> 14< div class ="container "> 15< div class ="table-wrap "> 16< div class ="table-cell "id ="tsd-search "data-index ="../assets/js/search.js "data-base =".. "> 17< div class ="field "> 18< label for ="tsd-search-field "class ="tsd-widget search no-caption "> Search</ label > 19< input id ="tsd-search-field "type ="text "/> 20</ div > 21< ul class ="results "> 22< li class ="state loading "> Preparing search index...</ li > 23< li class ="state failure "> The search index is not available</ li > 24</ ul > 25< a href ="../index.html "class ="title "> livesplit</ a > 26</ div > 27< div class ="table-cell "id ="tsd-widgets "> 28< div id ="tsd-filter "> 29< a href ="# "class ="tsd-widget options no-caption "data-toggle ="options "> Options</ a > 30< div class ="tsd-filter-group "> 31< div class ="tsd-select "id ="tsd-filter-visibility "> 32< span class ="tsd-select-label "> All</ span > 33< ul class ="tsd-select-list "> 34< li data-value ="public "> Public</ li > 35< li data-value ="protected "> Public/Protected</ li > 36< li data-value ="private "class ="selected "> All</ li > 37</ ul > 38</ div > 39< input type ="checkbox "id ="tsd-filter-inherited "checked /> 40< label class ="tsd-widget "for ="tsd-filter-inherited "> Inherited</ label > 41< input type ="checkbox "id ="tsd-filter-externals "checked /> 42< label class ="tsd-widget "for ="tsd-filter-externals "> Externals</ label > 43< input type ="checkbox "id ="tsd-filter-only-exported "/> 44< label class ="tsd-widget "for ="tsd-filter-only-exported "> Only exported</ label > 45</ div > 46</ div > 47< a href ="# "class ="tsd-widget menu no-caption "data-toggle ="menu "> Menu</ a > 48</ div > 49</ div > 50</ div > 51</ div > 52< div class ="tsd-page-title "> 53< div class ="container "> 54< ul class ="tsd-breadcrumb "> 55< li > 56< a href ="../globals.html "> Globals</ a > 57</ li > 58< li > 59< a href ="timer.html "> Timer</ a > 60</ li > 61</ ul > 62< h1 > Class Timer</ h1 > 63</ div > 64</ div > 65</ header > 66< div class ="container container-main "> 67< div class ="row "> 68< div class ="col-8 col-content "> 69< section class ="tsd-panel tsd-comment "> 70< div class ="tsd-comment tsd-typography "> 71< div class ="lead "> 72< p > A Timer provides all the capabilities necessary for doing speedrun attempts.</ p > 73</ div > 74</ div > 75</ section > 76< section class ="tsd-panel tsd-hierarchy "> 77< h3 > Hierarchy</ h3 > 78< ul class ="tsd-hierarchy "> 79< li > 80< a href ="timerrefmut.html "class ="tsd-signature-type "> TimerRefMut</ a > 81< ul class ="tsd-hierarchy "> 82< li > 83< span class ="target "> Timer</ span > 84</ li > 85</ ul > 86</ li > 87</ ul > 88</ section > 89< section class ="tsd-panel-group tsd-index-group "> 90< h2 > Index</ h2 > 91< section class ="tsd-panel tsd-index-panel "> 92< div class ="tsd-index-content "> 93< section class ="tsd-index-section tsd-is-inherited "> 94< h3 > Constructors</ h3 > 95< ul class ="tsd-index-list "> 96< li class ="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#constructor "class ="tsd-kind-icon "> constructor</ a ></ li > 97</ ul > 98</ section > 99< section class ="tsd-index-section tsd-is-inherited "> 100< h3 > Properties</ h3 > 101< ul class ="tsd-index-list "> 102< li class ="tsd-kind-property tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#ptr "class ="tsd-kind-icon "> ptr</ a ></ li > 103</ ul > 104</ section > 105< section class ="tsd-index-section "> 106< h3 > Methods</ h3 > 107< ul class ="tsd-index-list "> 108< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#currentcomparison "class ="tsd-kind-icon "> current< wbr > Comparison</ a ></ li > 109< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#currentphase "class ="tsd-kind-icon "> current< wbr > Phase</ a ></ li > 110< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#currenttime "class ="tsd-kind-icon "> current< wbr > Time</ a ></ li > 111< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#currenttimingmethod "class ="tsd-kind-icon "> current< wbr > Timing< wbr > Method</ a ></ li > 112< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#deinitializegametime "class ="tsd-kind-icon "> deinitialize< wbr > Game< wbr > Time</ a ></ li > 113< li class ="tsd-kind-method tsd-parent-kind-class ">< a href ="timer.html#dispose "class ="tsd-kind-icon "> dispose</ a ></ li > 114< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#getrun "class ="tsd-kind-icon "> get< wbr > Run</ a ></ li > 115< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#initializegametime "class ="tsd-kind-icon "> initialize< wbr > Game< wbr > Time</ a ></ li > 116< li class ="tsd-kind-method tsd-parent-kind-class ">< a href ="timer.html#intorun "class ="tsd-kind-icon "> into< wbr > Run</ a ></ li > 117< li class ="tsd-kind-method tsd-parent-kind-class ">< a href ="timer.html#intoshared "class ="tsd-kind-icon "> into< wbr > Shared</ a ></ li > 118< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#isgametimeinitialized "class ="tsd-kind-icon "> is< wbr > Game< wbr > Time< wbr > Initialized</ a ></ li > 119< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#isgametimepaused "class ="tsd-kind-icon "> is< wbr > Game< wbr > Time< wbr > Paused</ a ></ li > 120< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#loadingtimes "class ="tsd-kind-icon "> loading< wbr > Times</ a ></ li > 121< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#markasunmodified "class ="tsd-kind-icon "> mark< wbr > AsUnmodified</ a ></ li > 122< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#pause "class ="tsd-kind-icon "> pause</ a ></ li > 123< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#pausegametime "class ="tsd-kind-icon "> pause< wbr > Game< wbr > Time</ a ></ li > 124< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#printdebug "class ="tsd-kind-icon "> print< wbr > Debug</ a ></ li > 125< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#replacerun "class ="tsd-kind-icon "> replace< wbr > Run</ a ></ li > 126< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#reset "class ="tsd-kind-icon "> reset</ a ></ li > 127< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#resetandsetattemptaspb "class ="tsd-kind-icon "> reset< wbr > And< wbr > Set< wbr > Attempt< wbr > AsPb</ a ></ li > 128< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#resume "class ="tsd-kind-icon "> resume</ a ></ li > 129< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#resumegametime "class ="tsd-kind-icon "> resume< wbr > Game< wbr > Time</ a ></ li > 130< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#saveaslss "class ="tsd-kind-icon "> save< wbr > AsLss</ a ></ li > 131< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#setcurrenttimingmethod "class ="tsd-kind-icon "> set< wbr > Current< wbr > Timing< wbr > Method</ a ></ li > 132< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#setgametime "class ="tsd-kind-icon "> set< wbr > Game< wbr > Time</ a ></ li > 133< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#setloadingtimes "class ="tsd-kind-icon "> set< wbr > Loading< wbr > Times</ a ></ li > 134< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#setrun "class ="tsd-kind-icon "> set< wbr > Run</ a ></ li > 135< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#skipsplit "class ="tsd-kind-icon "> skip< wbr > Split</ a ></ li > 136< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#split "class ="tsd-kind-icon "> split</ a ></ li > 137< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#splitorstart "class ="tsd-kind-icon "> split< wbr > OrStart</ a ></ li > 138< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#start "class ="tsd-kind-icon "> start</ a ></ li > 139< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#switchtonextcomparison "class ="tsd-kind-icon "> switch< wbr > ToNext< wbr > Comparison</ a ></ li > 140< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#switchtopreviouscomparison "class ="tsd-kind-icon "> switch< wbr > ToPrevious< wbr > Comparison</ a ></ li > 141< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#togglepause "class ="tsd-kind-icon "> toggle< wbr > Pause</ a ></ li > 142< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#togglepauseorstart "class ="tsd-kind-icon "> toggle< wbr > Pause< wbr > OrStart</ a ></ li > 143< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#undoallpauses "class ="tsd-kind-icon "> undo< wbr > All< wbr > Pauses</ a ></ li > 144< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< a href ="timer.html#undosplit "class ="tsd-kind-icon "> undo< wbr > Split</ a ></ li > 145< li class ="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter ">< a href ="timer.html#with "class ="tsd-kind-icon "> with</ a ></ li > 146< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-static ">< a href ="timer.html#new "class ="tsd-kind-icon "> new</ a ></ li > 147</ ul > 148</ section > 149</ div > 150</ section > 151</ section > 152< section class ="tsd-panel-group tsd-member-group tsd-is-inherited "> 153< h2 > Constructors</ h2 > 154< section class ="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited "> 155< a name ="constructor "class ="tsd-anchor "></ a > 156< h3 > constructor</ h3 > 157< ul class ="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited "> 158< li class ="tsd-signature tsd-kind-icon "> new< wbr > Timer< span class ="tsd-signature-symbol "> (</ span > ptr< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> number</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< a href ="timer.html "class ="tsd-signature-type "> Timer</ a ></ li > 159</ ul > 160< ul class ="tsd-descriptions "> 161< li class ="tsd-description "> 162< aside class ="tsd-sources "> 163< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#constructor "> constructor</ a ></ p > 164< ul > 165< li > Defined in livesplit_core.ts:6868</ li > 166</ ul > 167</ aside > 168< div class ="tsd-comment tsd-typography "> 169< div class ="lead "> 170< p > This constructor is an implementation detail. Do not use this.</ p > 171</ div > 172</ div > 173< h4 class ="tsd-parameters-title "> Parameters</ h4 > 174< ul class ="tsd-parameters "> 175< li > 176< h5 > ptr:< span class ="tsd-signature-type "> number</ span ></ h5 > 177</ li > 178</ ul > 179< h4 class ="tsd-returns-title "> Returns< a href ="timer.html "class ="tsd-signature-type "> Timer</ a ></ h4 > 180</ li > 181</ ul > 182</ section > 183</ section > 184< section class ="tsd-panel-group tsd-member-group tsd-is-inherited "> 185< h2 > Properties</ h2 > 186< section class ="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited "> 187< a name ="ptr "class ="tsd-anchor "></ a > 188< h3 > ptr</ h3 > 189< div class ="tsd-signature tsd-kind-icon "> ptr< span class ="tsd-signature-symbol "> :</ span > < span class ="tsd-signature-type "> number</ span ></ div > 190< aside class ="tsd-sources "> 191< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#ptr "> ptr</ a ></ p > 192< ul > 193< li > Defined in livesplit_core.ts:6764</ li > 194</ ul > 195</ aside > 196</ section > 197</ section > 198< section class ="tsd-panel-group tsd-member-group "> 199< h2 > Methods</ h2 > 200< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 201< a name ="currentcomparison "class ="tsd-anchor "></ a > 202< h3 > current< wbr > Comparison</ h3 > 203< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 204< li class ="tsd-signature tsd-kind-icon "> current< wbr > Comparison< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> string</ span ></ li > 205</ ul > 206< ul class ="tsd-descriptions "> 207< li class ="tsd-description "> 208< aside class ="tsd-sources "> 209< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#currentcomparison "> currentComparison</ a ></ p > 210< ul > 211< li > Defined in livesplit_core.ts:6779</ li > 212</ ul > 213</ aside > 214< div class ="tsd-comment tsd-typography "> 215< div class ="lead "> 216< p > Returns the current comparison that is being compared against. This may 217 be a custom comparison or one of the Comparison Generators.</ p > 218</ div > 219</ div > 220< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> string</ span ></ h4 > 221</ li > 222</ ul > 223</ section > 224< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 225< a name ="currentphase "class ="tsd-anchor "></ a > 226< h3 > current< wbr > Phase</ h3 > 227< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 228< li class ="tsd-signature tsd-kind-icon "> current< wbr > Phase< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> number</ span ></ li > 229</ ul > 230< ul class ="tsd-descriptions "> 231< li class ="tsd-description "> 232< aside class ="tsd-sources "> 233< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#currentphase "> currentPhase</ a ></ p > 234< ul > 235< li > Defined in livesplit_core.ts:6821</ li > 236</ ul > 237</ aside > 238< div class ="tsd-comment tsd-typography "> 239< div class ="lead "> 240< p > Returns the current Timer Phase.</ p > 241</ div > 242</ div > 243< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> number</ span ></ h4 > 244</ li > 245</ ul > 246</ section > 247< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 248< a name ="currenttime "class ="tsd-anchor "></ a > 249< h3 > current< wbr > Time</ h3 > 250< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 251< li class ="tsd-signature tsd-kind-icon "> current< wbr > Time< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< a href ="timeref.html "class ="tsd-signature-type "> TimeRef</ a ></ li > 252</ ul > 253< ul class ="tsd-descriptions "> 254< li class ="tsd-description "> 255< aside class ="tsd-sources "> 256< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#currenttime "> currentTime</ a ></ p > 257< ul > 258< li > Defined in livesplit_core.ts:6862</ li > 259</ ul > 260</ aside > 261< div class ="tsd-comment tsd-typography "> 262< div class ="lead "> 263< p > Returns the current time of the Timer. The Game Time is null if the Game 264 Time has not been initialized.</ p > 265</ div > 266</ div > 267< h4 class ="tsd-returns-title "> Returns< a href ="timeref.html "class ="tsd-signature-type "> TimeRef</ a ></ h4 > 268</ li > 269</ ul > 270</ section > 271< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 272< a name ="currenttimingmethod "class ="tsd-anchor "></ a > 273< h3 > current< wbr > Timing< wbr > Method</ h3 > 274< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 275< li class ="tsd-signature tsd-kind-icon "> current< wbr > Timing< wbr > Method< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> number</ span ></ li > 276</ ul > 277< ul class ="tsd-descriptions "> 278< li class ="tsd-description "> 279< aside class ="tsd-sources "> 280< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#currenttimingmethod "> currentTimingMethod</ a ></ p > 281< ul > 282< li > Defined in livesplit_core.ts:6768</ li > 283</ ul > 284</ aside > 285< div class ="tsd-comment tsd-typography "> 286< div class ="lead "> 287< p > Returns the currently selected Timing Method.</ p > 288</ div > 289</ div > 290< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> number</ span ></ h4 > 291</ li > 292</ ul > 293</ section > 294< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 295< a name ="deinitializegametime "class ="tsd-anchor "></ a > 296< h3 > deinitialize< wbr > Game< wbr > Time</ h3 > 297< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 298< li class ="tsd-signature tsd-kind-icon "> deinitialize< wbr > Game< wbr > Time< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 299</ ul > 300< ul class ="tsd-descriptions "> 301< li class ="tsd-description "> 302< aside class ="tsd-sources "> 303< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#deinitializegametime "> deinitializeGameTime</ a ></ p > 304< ul > 305< li > Defined in livesplit_core.ts:7089</ li > 306</ ul > 307</ aside > 308< div class ="tsd-comment tsd-typography "> 309< div class ="lead "> 310< p > Deinitializes Game Time for the current attempt.</ p > 311</ div > 312</ div > 313< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 314</ li > 315</ ul > 316</ section > 317< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class "> 318< a name ="dispose "class ="tsd-anchor "></ a > 319< h3 > dispose</ h3 > 320< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class "> 321< li class ="tsd-signature tsd-kind-icon "> dispose< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 322</ ul > 323< ul class ="tsd-descriptions "> 324< li class ="tsd-description "> 325< aside class ="tsd-sources "> 326< ul > 327< li > Defined in livesplit_core.ts:7178</ li > 328</ ul > 329</ aside > 330< div class ="tsd-comment tsd-typography "> 331< div class ="lead "> 332< p > Disposes the object, allowing it to clean up all of its memory. You need 333 to call this for every object that you don't use anymore and hasn't 334 already been disposed.</ p > 335</ div > 336</ div > 337< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 338</ li > 339</ ul > 340</ section > 341< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 342< a name ="getrun "class ="tsd-anchor "></ a > 343< h3 > get< wbr > Run</ h3 > 344< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 345< li class ="tsd-signature tsd-kind-icon "> get< wbr > Run< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< a href ="runref.html "class ="tsd-signature-type "> RunRef</ a ></ li > 346</ ul > 347< ul class ="tsd-descriptions "> 348< li class ="tsd-description "> 349< aside class ="tsd-sources "> 350< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#getrun "> getRun</ a ></ p > 351< ul > 352< li > Defined in livesplit_core.ts:6831</ li > 353</ ul > 354</ aside > 355< div class ="tsd-comment tsd-typography "> 356< div class ="lead "> 357< p > Accesses the Run in use by the Timer.</ p > 358</ div > 359</ div > 360< h4 class ="tsd-returns-title "> Returns< a href ="runref.html "class ="tsd-signature-type "> RunRef</ a ></ h4 > 361</ li > 362</ ul > 363</ section > 364< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 365< a name ="initializegametime "class ="tsd-anchor "></ a > 366< h3 > initialize< wbr > Game< wbr > Time</ h3 > 367< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 368< li class ="tsd-signature tsd-kind-icon "> initialize< wbr > Game< wbr > Time< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 369</ ul > 370< ul class ="tsd-descriptions "> 371< li class ="tsd-description "> 372< aside class ="tsd-sources "> 373< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#initializegametime "> initializeGameTime</ a ></ p > 374< ul > 375< li > Defined in livesplit_core.ts:7080</ li > 376</ ul > 377</ aside > 378< div class ="tsd-comment tsd-typography "> 379< div class ="lead "> 380< p > Initializes Game Time for the current attempt. Game Time automatically 381 gets uninitialized for each new attempt.</ p > 382</ div > 383</ div > 384< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 385</ li > 386</ ul > 387</ section > 388< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class "> 389< a name ="intorun "class ="tsd-anchor "></ a > 390< h3 > into< wbr > Run</ h3 > 391< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class "> 392< li class ="tsd-signature tsd-kind-icon "> into< wbr > Run< span class ="tsd-signature-symbol "> (</ span > updateSplits< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> boolean</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< a href ="run.html "class ="tsd-signature-type "> Run</ a ></ li > 393</ ul > 394< ul class ="tsd-descriptions "> 395< li class ="tsd-description "> 396< aside class ="tsd-sources "> 397< ul > 398< li > Defined in livesplit_core.ts:7219</ li > 399</ ul > 400</ aside > 401< div class ="tsd-comment tsd-typography "> 402< div class ="lead "> 403< p > Takes out the Run from the Timer and resets the current attempt if there 404 is one in progress. If the splits are to be updated, all the information 405 of the current attempt is stored in the Run's history. Otherwise the 406 current attempt's information is discarded.</ p > 407</ div > 408</ div > 409< h4 class ="tsd-parameters-title "> Parameters</ h4 > 410< ul class ="tsd-parameters "> 411< li > 412< h5 > updateSplits:< span class ="tsd-signature-type "> boolean</ span ></ h5 > 413</ li > 414</ ul > 415< h4 class ="tsd-returns-title "> Returns< a href ="run.html "class ="tsd-signature-type "> Run</ a ></ h4 > 416</ li > 417</ ul > 418</ section > 419< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class "> 420< a name ="intoshared "class ="tsd-anchor "></ a > 421< h3 > into< wbr > Shared</ h3 > 422< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class "> 423< li class ="tsd-signature tsd-kind-icon "> into< wbr > Shared< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< a href ="sharedtimer.html "class ="tsd-signature-type "> SharedTimer</ a ></ li > 424</ ul > 425< ul class ="tsd-descriptions "> 426< li class ="tsd-description "> 427< aside class ="tsd-sources "> 428< ul > 429< li > Defined in livesplit_core.ts:7205</ li > 430</ ul > 431</ aside > 432< div class ="tsd-comment tsd-typography "> 433< div class ="lead "> 434< p > Consumes the Timer and creates a Shared Timer that can be shared across 435 multiple threads with multiple owners.</ p > 436</ div > 437</ div > 438< h4 class ="tsd-returns-title "> Returns< a href ="sharedtimer.html "class ="tsd-signature-type "> SharedTimer</ a ></ h4 > 439</ li > 440</ ul > 441</ section > 442< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 443< a name ="isgametimeinitialized "class ="tsd-anchor "></ a > 444< h3 > is< wbr > Game< wbr > Time< wbr > Initialized</ h3 > 445< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 446< li class ="tsd-signature tsd-kind-icon "> is< wbr > Game< wbr > Time< wbr > Initialized< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> boolean</ span ></ li > 447</ ul > 448< ul class ="tsd-descriptions "> 449< li class ="tsd-description "> 450< aside class ="tsd-sources "> 451< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#isgametimeinitialized "> isGameTimeInitialized</ a ></ p > 452< ul > 453< li > Defined in livesplit_core.ts:6790</ li > 454</ ul > 455</ aside > 456< div class ="tsd-comment tsd-typography "> 457< div class ="lead "> 458< p > Returns whether Game Time is currently initialized. Game Time 459 automatically gets uninitialized for each new attempt.</ p > 460</ div > 461</ div > 462< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> boolean</ span ></ h4 > 463</ li > 464</ ul > 465</ section > 466< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 467< a name ="isgametimepaused "class ="tsd-anchor "></ a > 468< h3 > is< wbr > Game< wbr > Time< wbr > Paused</ h3 > 469< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 470< li class ="tsd-signature tsd-kind-icon "> is< wbr > Game< wbr > Time< wbr > Paused< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> boolean</ span ></ li > 471</ ul > 472< ul class ="tsd-descriptions "> 473< li class ="tsd-description "> 474< aside class ="tsd-sources "> 475< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#isgametimepaused "> isGameTimePaused</ a ></ p > 476< ul > 477< li > Defined in livesplit_core.ts:6801</ li > 478</ ul > 479</ aside > 480< div class ="tsd-comment tsd-typography "> 481< div class ="lead "> 482< p > Returns whether the Game Timer is currently paused. If the Game Timer is 483 not paused, it automatically increments similar to Real Time.</ p > 484</ div > 485</ div > 486< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> boolean</ span ></ h4 > 487</ li > 488</ ul > 489</ section > 490< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 491< a name ="loadingtimes "class ="tsd-anchor "></ a > 492< h3 > loading< wbr > Times</ h3 > 493< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 494< li class ="tsd-signature tsd-kind-icon "> loading< wbr > Times< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< a href ="timespanref.html "class ="tsd-signature-type "> TimeSpanRef</ a ></ li > 495</ ul > 496< ul class ="tsd-descriptions "> 497< li class ="tsd-description "> 498< aside class ="tsd-sources "> 499< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#loadingtimes "> loadingTimes</ a ></ p > 500< ul > 501< li > Defined in livesplit_core.ts:6811</ li > 502</ ul > 503</ aside > 504< div class ="tsd-comment tsd-typography "> 505< div class ="lead "> 506< p > Accesses the loading times. Loading times are defined as Game Time - Real Time.</ p > 507</ div > 508</ div > 509< h4 class ="tsd-returns-title "> Returns< a href ="timespanref.html "class ="tsd-signature-type "> TimeSpanRef</ a ></ h4 > 510</ li > 511</ ul > 512</ section > 513< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 514< a name ="markasunmodified "class ="tsd-anchor "></ a > 515< h3 > mark< wbr > AsUnmodified</ h3 > 516< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 517< li class ="tsd-signature tsd-kind-icon "> mark< wbr > AsUnmodified< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 518</ ul > 519< ul class ="tsd-descriptions "> 520< li class ="tsd-description "> 521< aside class ="tsd-sources "> 522< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#markasunmodified "> markAsUnmodified</ a ></ p > 523< ul > 524< li > Defined in livesplit_core.ts:7148</ li > 525</ ul > 526</ aside > 527< div class ="tsd-comment tsd-typography "> 528< div class ="lead "> 529< p > Marks the Run as unmodified, so that it is known that all the changes 530 have been saved.</ p > 531</ div > 532</ div > 533< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 534</ li > 535</ ul > 536</ section > 537< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 538< a name ="pause "class ="tsd-anchor "></ a > 539< h3 > pause</ h3 > 540< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 541< li class ="tsd-signature tsd-kind-icon "> pause< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 542</ ul > 543< ul class ="tsd-descriptions "> 544< li class ="tsd-description "> 545< aside class ="tsd-sources "> 546< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#pause "> pause</ a ></ p > 547< ul > 548< li > Defined in livesplit_core.ts:6997</ li > 549</ ul > 550</ aside > 551< div class ="tsd-comment tsd-typography "> 552< div class ="lead "> 553< p > Pauses an active attempt that is not paused.</ p > 554</ div > 555</ div > 556< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 557</ li > 558</ ul > 559</ section > 560< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 561< a name ="pausegametime "class ="tsd-anchor "></ a > 562< h3 > pause< wbr > Game< wbr > Time</ h3 > 563< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 564< li class ="tsd-signature tsd-kind-icon "> pause< wbr > Game< wbr > Time< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 565</ ul > 566< ul class ="tsd-descriptions "> 567< li class ="tsd-description "> 568< aside class ="tsd-sources "> 569< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#pausegametime "> pauseGameTime</ a ></ p > 570< ul > 571< li > Defined in livesplit_core.ts:7099</ li > 572</ ul > 573</ aside > 574< div class ="tsd-comment tsd-typography "> 575< div class ="lead "> 576< p > Pauses the Game Timer such that it doesn't automatically increment 577 similar to Real Time.</ p > 578</ div > 579</ div > 580< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 581</ li > 582</ ul > 583</ section > 584< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 585< a name ="printdebug "class ="tsd-anchor "></ a > 586< h3 > print< wbr > Debug</ h3 > 587< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 588< li class ="tsd-signature tsd-kind-icon "> print< wbr > Debug< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 589</ ul > 590< ul class ="tsd-descriptions "> 591< li class ="tsd-description "> 592< aside class ="tsd-sources "> 593< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#printdebug "> printDebug</ a ></ p > 594< ul > 595< li > Defined in livesplit_core.ts:6852</ li > 596</ ul > 597</ aside > 598< div class ="tsd-comment tsd-typography "> 599< div class ="lead "> 600< p > Prints out debug information representing the whole state of the Timer. This 601 is being written to stdout.</ p > 602</ div > 603</ div > 604< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 605</ li > 606</ ul > 607</ section > 608< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 609< a name ="replacerun "class ="tsd-anchor "></ a > 610< h3 > replace< wbr > Run</ h3 > 611< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 612< li class ="tsd-signature tsd-kind-icon "> replace< wbr > Run< span class ="tsd-signature-symbol "> (</ span > run< span class ="tsd-signature-symbol "> :</ span >< a href ="runrefmut.html "class ="tsd-signature-type "> RunRefMut</ a > , updateSplits< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> boolean</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> boolean</ span ></ li > 613</ ul > 614< ul class ="tsd-descriptions "> 615< li class ="tsd-description "> 616< aside class ="tsd-sources "> 617< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#replacerun "> replaceRun</ a ></ p > 618< ul > 619< li > Defined in livesplit_core.ts:6890</ li > 620</ ul > 621</ aside > 622< div class ="tsd-comment tsd-typography "> 623< div class ="lead "> 624< p > Replaces the Run object used by the Timer with the Run object provided. If 625 the Run provided contains no segments, it can't be used for timing and is 626 not being modified. Otherwise the Run that was in use by the Timer gets 627 stored in the Run object provided. Before the Run is returned, the current 628 attempt is reset and the splits are being updated depending on the 629< code > update_splits</ code > parameter. The return value indicates whether the Run got 630 replaced successfully.</ p > 631</ div > 632</ div > 633< h4 class ="tsd-parameters-title "> Parameters</ h4 > 634< ul class ="tsd-parameters "> 635< li > 636< h5 > run:< a href ="runrefmut.html "class ="tsd-signature-type "> RunRefMut</ a ></ h5 > 637</ li > 638< li > 639< h5 > updateSplits:< span class ="tsd-signature-type "> boolean</ span ></ h5 > 640</ li > 641</ ul > 642< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> boolean</ span ></ h4 > 643</ li > 644</ ul > 645</ section > 646< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 647< a name ="reset "class ="tsd-anchor "></ a > 648< h3 > reset</ h3 > 649< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 650< li class ="tsd-signature tsd-kind-icon "> reset< span class ="tsd-signature-symbol "> (</ span > updateSplits< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> boolean</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 651</ ul > 652< ul class ="tsd-descriptions "> 653< li class ="tsd-description "> 654< aside class ="tsd-sources "> 655< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#reset "> reset</ a ></ p > 656< ul > 657< li > Defined in livesplit_core.ts:6977</ li > 658</ ul > 659</ aside > 660< div class ="tsd-comment tsd-typography "> 661< div class ="lead "> 662< p > Resets the current attempt if there is one in progress. If the splits 663 are to be updated, all the information of the current attempt is stored 664 in the Run's history. Otherwise the current attempt's information is 665 discarded.</ p > 666</ div > 667</ div > 668< h4 class ="tsd-parameters-title "> Parameters</ h4 > 669< ul class ="tsd-parameters "> 670< li > 671< h5 > updateSplits:< span class ="tsd-signature-type "> boolean</ span ></ h5 > 672</ li > 673</ ul > 674< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 675</ li > 676</ ul > 677</ section > 678< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 679< a name ="resetandsetattemptaspb "class ="tsd-anchor "></ a > 680< h3 > reset< wbr > And< wbr > Set< wbr > Attempt< wbr > AsPb</ h3 > 681< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 682< li class ="tsd-signature tsd-kind-icon "> reset< wbr > And< wbr > Set< wbr > Attempt< wbr > AsPb< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 683</ ul > 684< ul class ="tsd-descriptions "> 685< li class ="tsd-description "> 686< aside class ="tsd-sources "> 687< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#resetandsetattemptaspb "> resetAndSetAttemptAsPb</ a ></ p > 688< ul > 689< li > Defined in livesplit_core.ts:6988</ li > 690</ ul > 691</ aside > 692< div class ="tsd-comment tsd-typography "> 693< div class ="lead "> 694< p > Resets the current attempt if there is one in progress. The splits are 695 updated such that the current attempt's split times are being stored as 696 the new Personal Best.</ p > 697</ div > 698</ div > 699< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 700</ li > 701</ ul > 702</ section > 703< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 704< a name ="resume "class ="tsd-anchor "></ a > 705< h3 > resume</ h3 > 706< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 707< li class ="tsd-signature tsd-kind-icon "> resume< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 708</ ul > 709< ul class ="tsd-descriptions "> 710< li class ="tsd-description "> 711< aside class ="tsd-sources "> 712< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#resume "> resume</ a ></ p > 713< ul > 714< li > Defined in livesplit_core.ts:7006</ li > 715</ ul > 716</ aside > 717< div class ="tsd-comment tsd-typography "> 718< div class ="lead "> 719< p > Resumes an attempt that is paused.</ p > 720</ div > 721</ div > 722< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 723</ li > 724</ ul > 725</ section > 726< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 727< a name ="resumegametime "class ="tsd-anchor "></ a > 728< h3 > resume< wbr > Game< wbr > Time</ h3 > 729< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 730< li class ="tsd-signature tsd-kind-icon "> resume< wbr > Game< wbr > Time< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 731</ ul > 732< ul class ="tsd-descriptions "> 733< li class ="tsd-description "> 734< aside class ="tsd-sources "> 735< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#resumegametime "> resumeGameTime</ a ></ p > 736< ul > 737< li > Defined in livesplit_core.ts:7109</ li > 738</ ul > 739</ aside > 740< div class ="tsd-comment tsd-typography "> 741< div class ="lead "> 742< p > Resumes the Game Timer such that it automatically increments similar to 743 Real Time, starting from the Game Time it was paused at.</ p > 744</ div > 745</ div > 746< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 747</ li > 748</ ul > 749</ section > 750< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 751< a name ="saveaslss "class ="tsd-anchor "></ a > 752< h3 > save< wbr > AsLss</ h3 > 753< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 754< li class ="tsd-signature tsd-kind-icon "> save< wbr > AsLss< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> string</ span ></ li > 755</ ul > 756< ul class ="tsd-descriptions "> 757< li class ="tsd-description "> 758< aside class ="tsd-sources "> 759< p > Inherited from< a href ="timerref.html "> TimerRef</ a > .< a href ="timerref.html#saveaslss "> saveAsLss</ a ></ p > 760< ul > 761< li > Defined in livesplit_core.ts:6841</ li > 762</ ul > 763</ aside > 764< div class ="tsd-comment tsd-typography "> 765< div class ="lead "> 766< p > Saves the Run in use by the Timer as a LiveSplit splits file (*.lss).</ p > 767</ div > 768</ div > 769< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> string</ span ></ h4 > 770</ li > 771</ ul > 772</ section > 773< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 774< a name ="setcurrenttimingmethod "class ="tsd-anchor "></ a > 775< h3 > set< wbr > Current< wbr > Timing< wbr > Method</ h3 > 776< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 777< li class ="tsd-signature tsd-kind-icon "> set< wbr > Current< wbr > Timing< wbr > Method< span class ="tsd-signature-symbol "> (</ span > method< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> number</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 778</ ul > 779< ul class ="tsd-descriptions "> 780< li class ="tsd-description "> 781< aside class ="tsd-sources "> 782< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#setcurrenttimingmethod "> setCurrentTimingMethod</ a ></ p > 783< ul > 784< li > Defined in livesplit_core.ts:7052</ li > 785</ ul > 786</ aside > 787< div class ="tsd-comment tsd-typography "> 788< div class ="lead "> 789< p > Sets the current Timing Method to the Timing Method provided.</ p > 790</ div > 791</ div > 792< h4 class ="tsd-parameters-title "> Parameters</ h4 > 793< ul class ="tsd-parameters "> 794< li > 795< h5 > method:< span class ="tsd-signature-type "> number</ span ></ h5 > 796</ li > 797</ ul > 798< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 799</ li > 800</ ul > 801</ section > 802< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 803< a name ="setgametime "class ="tsd-anchor "></ a > 804< h3 > set< wbr > Game< wbr > Time</ h3 > 805< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 806< li class ="tsd-signature tsd-kind-icon "> set< wbr > Game< wbr > Time< span class ="tsd-signature-symbol "> (</ span > time< span class ="tsd-signature-symbol "> :</ span >< a href ="timespanref.html "class ="tsd-signature-type "> TimeSpanRef</ a >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 807</ ul > 808< ul class ="tsd-descriptions "> 809< li class ="tsd-description "> 810< aside class ="tsd-sources "> 811< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#setgametime "> setGameTime</ a ></ p > 812< ul > 813< li > Defined in livesplit_core.ts:7121</ li > 814</ ul > 815</ aside > 816< div class ="tsd-comment tsd-typography "> 817< div class ="lead "> 818< p > Sets the Game Time to the time specified. This also works if the Game 819 Time is paused, which can be used as a way of updating the Game Timer 820 periodically without it automatically moving forward. This ensures that 821 the Game Timer never shows any time that is not coming from the game.</ p > 822</ div > 823</ div > 824< h4 class ="tsd-parameters-title "> Parameters</ h4 > 825< ul class ="tsd-parameters "> 826< li > 827< h5 > time:< a href ="timespanref.html "class ="tsd-signature-type "> TimeSpanRef</ a ></ h5 > 828</ li > 829</ ul > 830< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 831</ li > 832</ ul > 833</ section > 834< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 835< a name ="setloadingtimes "class ="tsd-anchor "></ a > 836< h3 > set< wbr > Loading< wbr > Times</ h3 > 837< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 838< li class ="tsd-signature tsd-kind-icon "> set< wbr > Loading< wbr > Times< span class ="tsd-signature-symbol "> (</ span > time< span class ="tsd-signature-symbol "> :</ span >< a href ="timespanref.html "class ="tsd-signature-type "> TimeSpanRef</ a >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 839</ ul > 840< ul class ="tsd-descriptions "> 841< li class ="tsd-description "> 842< aside class ="tsd-sources "> 843< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#setloadingtimes "> setLoadingTimes</ a ></ p > 844< ul > 845< li > Defined in livesplit_core.ts:7135</ li > 846</ ul > 847</ aside > 848< div class ="tsd-comment tsd-typography "> 849< div class ="lead "> 850< p > Instead of setting the Game Time directly, this method can be used to 851 just specify the amount of time the game has been loading. The Game Time 852 is then automatically determined by Real Time - Loading Times.</ p > 853</ div > 854</ div > 855< h4 class ="tsd-parameters-title "> Parameters</ h4 > 856< ul class ="tsd-parameters "> 857< li > 858< h5 > time:< a href ="timespanref.html "class ="tsd-signature-type "> TimeSpanRef</ a ></ h5 > 859</ li > 860</ ul > 861< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 862</ li > 863</ ul > 864</ section > 865< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 866< a name ="setrun "class ="tsd-anchor "></ a > 867< h3 > set< wbr > Run</ h3 > 868< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 869< li class ="tsd-signature tsd-kind-icon "> set< wbr > Run< span class ="tsd-signature-symbol "> (</ span > run< span class ="tsd-signature-symbol "> :</ span >< a href ="run.html "class ="tsd-signature-type "> Run</ a >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< a href ="run.html "class ="tsd-signature-type "> Run</ a >< span class ="tsd-signature-symbol "> |</ span >< span class ="tsd-signature-type "> null</ span ></ li > 870</ ul > 871< ul class ="tsd-descriptions "> 872< li class ="tsd-description "> 873< aside class ="tsd-sources "> 874< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#setrun "> setRun</ a ></ p > 875< ul > 876< li > Defined in livesplit_core.ts:6906</ li > 877</ ul > 878</ aside > 879< div class ="tsd-comment tsd-typography "> 880< div class ="lead "> 881< p > Sets the Run object used by the Timer with the Run object provided. If the 882 Run provided contains no segments, it can't be used for timing and gets 883 returned again. If the Run object can be set, the original Run object in use 884 by the Timer is disposed by this method and null is returned.</ p > 885</ div > 886</ div > 887< h4 class ="tsd-parameters-title "> Parameters</ h4 > 888< ul class ="tsd-parameters "> 889< li > 890< h5 > run:< a href ="run.html "class ="tsd-signature-type "> Run</ a ></ h5 > 891</ li > 892</ ul > 893< h4 class ="tsd-returns-title "> Returns< a href ="run.html "class ="tsd-signature-type "> Run</ a > 894< span class ="tsd-signature-symbol "> |</ span > 895< span class ="tsd-signature-type "> null</ span > 896</ h4 > 897</ li > 898</ ul > 899</ section > 900< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 901< a name ="skipsplit "class ="tsd-anchor "></ a > 902< h3 > skip< wbr > Split</ h3 > 903< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 904< li class ="tsd-signature tsd-kind-icon "> skip< wbr > Split< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 905</ ul > 906< ul class ="tsd-descriptions "> 907< li class ="tsd-description "> 908< aside class ="tsd-sources "> 909< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#skipsplit "> skipSplit</ a ></ p > 910< ul > 911< li > Defined in livesplit_core.ts:6954</ li > 912</ ul > 913</ aside > 914< div class ="tsd-comment tsd-typography "> 915< div class ="lead "> 916< p > Skips the current split if an attempt is in progress and the 917 current split is not the last split.</ p > 918</ div > 919</ div > 920< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 921</ li > 922</ ul > 923</ section > 924< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 925< a name ="split "class ="tsd-anchor "></ a > 926< h3 > split</ h3 > 927< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 928< li class ="tsd-signature tsd-kind-icon "> split< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 929</ ul > 930< ul class ="tsd-descriptions "> 931< li class ="tsd-description "> 932< aside class ="tsd-sources "> 933< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#split "> split</ a ></ p > 934< ul > 935< li > Defined in livesplit_core.ts:6934</ li > 936</ ul > 937</ aside > 938< div class ="tsd-comment tsd-typography "> 939< div class ="lead "> 940< p > If an attempt is in progress, stores the current time as the time of the 941 current split. The attempt ends if the last split time is stored.</ p > 942</ div > 943</ div > 944< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 945</ li > 946</ ul > 947</ section > 948< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 949< a name ="splitorstart "class ="tsd-anchor "></ a > 950< h3 > split< wbr > OrStart</ h3 > 951< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 952< li class ="tsd-signature tsd-kind-icon "> split< wbr > OrStart< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 953</ ul > 954< ul class ="tsd-descriptions "> 955< li class ="tsd-description "> 956< aside class ="tsd-sources "> 957< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#splitorstart "> splitOrStart</ a ></ p > 958< ul > 959< li > Defined in livesplit_core.ts:6944</ li > 960</ ul > 961</ aside > 962< div class ="tsd-comment tsd-typography "> 963< div class ="lead "> 964< p > Starts a new attempt or stores the current time as the time of the 965 current split. The attempt ends if the last split time is stored.</ p > 966</ div > 967</ div > 968< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 969</ li > 970</ ul > 971</ section > 972< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 973< a name ="start "class ="tsd-anchor "></ a > 974< h3 > start</ h3 > 975< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 976< li class ="tsd-signature tsd-kind-icon "> start< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 977</ ul > 978< ul class ="tsd-descriptions "> 979< li class ="tsd-description "> 980< aside class ="tsd-sources "> 981< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#start "> start</ a ></ p > 982< ul > 983< li > Defined in livesplit_core.ts:6924</ li > 984</ ul > 985</ aside > 986< div class ="tsd-comment tsd-typography "> 987< div class ="lead "> 988< p > Starts the Timer if there is no attempt in progress. If that's not the 989 case, nothing happens.</ p > 990</ div > 991</ div > 992< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 993</ li > 994</ ul > 995</ section > 996< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 997< a name ="switchtonextcomparison "class ="tsd-anchor "></ a > 998< h3 > switch< wbr > ToNext< wbr > Comparison</ h3 > 999< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1000< li class ="tsd-signature tsd-kind-icon "> switch< wbr > ToNext< wbr > Comparison< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 1001</ ul > 1002< ul class ="tsd-descriptions "> 1003< li class ="tsd-description "> 1004< aside class ="tsd-sources "> 1005< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#switchtonextcomparison "> switchToNextComparison</ a ></ p > 1006< ul > 1007< li > Defined in livesplit_core.ts:7061</ li > 1008</ ul > 1009</ aside > 1010< div class ="tsd-comment tsd-typography "> 1011< div class ="lead "> 1012< p > Switches the current comparison to the next comparison in the list.</ p > 1013</ div > 1014</ div > 1015< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 1016</ li > 1017</ ul > 1018</ section > 1019< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1020< a name ="switchtopreviouscomparison "class ="tsd-anchor "></ a > 1021< h3 > switch< wbr > ToPrevious< wbr > Comparison</ h3 > 1022< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1023< li class ="tsd-signature tsd-kind-icon "> switch< wbr > ToPrevious< wbr > Comparison< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 1024</ ul > 1025< ul class ="tsd-descriptions "> 1026< li class ="tsd-description "> 1027< aside class ="tsd-sources "> 1028< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#switchtopreviouscomparison "> switchToPreviousComparison</ a ></ p > 1029< ul > 1030< li > Defined in livesplit_core.ts:7070</ li > 1031</ ul > 1032</ aside > 1033< div class ="tsd-comment tsd-typography "> 1034< div class ="lead "> 1035< p > Switches the current comparison to the previous comparison in the list.</ p > 1036</ div > 1037</ div > 1038< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 1039</ li > 1040</ ul > 1041</ section > 1042< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1043< a name ="togglepause "class ="tsd-anchor "></ a > 1044< h3 > toggle< wbr > Pause</ h3 > 1045< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1046< li class ="tsd-signature tsd-kind-icon "> toggle< wbr > Pause< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 1047</ ul > 1048< ul class ="tsd-descriptions "> 1049< li class ="tsd-description "> 1050< aside class ="tsd-sources "> 1051< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#togglepause "> togglePause</ a ></ p > 1052< ul > 1053< li > Defined in livesplit_core.ts:7015</ li > 1054</ ul > 1055</ aside > 1056< div class ="tsd-comment tsd-typography "> 1057< div class ="lead "> 1058< p > Toggles an active attempt between< code > Paused</ code > and< code > Running</ code > .</ p > 1059</ div > 1060</ div > 1061< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 1062</ li > 1063</ ul > 1064</ section > 1065< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1066< a name ="togglepauseorstart "class ="tsd-anchor "></ a > 1067< h3 > toggle< wbr > Pause< wbr > OrStart</ h3 > 1068< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1069< li class ="tsd-signature tsd-kind-icon "> toggle< wbr > Pause< wbr > OrStart< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 1070</ ul > 1071< ul class ="tsd-descriptions "> 1072< li class ="tsd-description "> 1073< aside class ="tsd-sources "> 1074< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#togglepauseorstart "> togglePauseOrStart</ a ></ p > 1075< ul > 1076< li > Defined in livesplit_core.ts:7025</ li > 1077</ ul > 1078</ aside > 1079< div class ="tsd-comment tsd-typography "> 1080< div class ="lead "> 1081< p > Toggles an active attempt between< code > Paused</ code > and< code > Running</ code > or starts an 1082 attempt if there's none in progress.</ p > 1083</ div > 1084</ div > 1085< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 1086</ li > 1087</ ul > 1088</ section > 1089< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1090< a name ="undoallpauses "class ="tsd-anchor "></ a > 1091< h3 > undo< wbr > All< wbr > Pauses</ h3 > 1092< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1093< li class ="tsd-signature tsd-kind-icon "> undo< wbr > All< wbr > Pauses< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 1094</ ul > 1095< ul class ="tsd-descriptions "> 1096< li class ="tsd-description "> 1097< aside class ="tsd-sources "> 1098< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#undoallpauses "> undoAllPauses</ a ></ p > 1099< ul > 1100< li > Defined in livesplit_core.ts:7043</ li > 1101</ ul > 1102</ aside > 1103< div class ="tsd-comment tsd-typography "> 1104< div class ="lead "> 1105< p > Removes all the pause times from the current time. If the current 1106 attempt is paused, it also resumes that attempt. Additionally, if the 1107 attempt is finished, the final split time is adjusted to not include the 1108 pause times as well.</ p > 1109</ div > 1110< h1 id ="warning "> Warning</ h1 > 1111< p > This behavior is not entirely optimal, as generally only the final split 1112 time is modified, while all other split times are left unmodified, which 1113 may not be what actually happened during the run.</ p > 1114</ div > 1115< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 1116</ li > 1117</ ul > 1118</ section > 1119< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1120< a name ="undosplit "class ="tsd-anchor "></ a > 1121< h3 > undo< wbr > Split</ h3 > 1122< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1123< li class ="tsd-signature tsd-kind-icon "> undo< wbr > Split< span class ="tsd-signature-symbol "> (</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> void</ span ></ li > 1124</ ul > 1125< ul class ="tsd-descriptions "> 1126< li class ="tsd-description "> 1127< aside class ="tsd-sources "> 1128< p > Inherited from< a href ="timerrefmut.html "> TimerRefMut</ a > .< a href ="timerrefmut.html#undosplit "> undoSplit</ a ></ p > 1129< ul > 1130< li > Defined in livesplit_core.ts:6965</ li > 1131</ ul > 1132</ aside > 1133< div class ="tsd-comment tsd-typography "> 1134< div class ="lead "> 1135< p > Removes the split time from the last split if an attempt is in progress 1136 and there is a previous split. The Timer Phase also switches to 1137< code > Running</ code > if it previously was< code > Ended</ code > .</ p > 1138</ div > 1139</ div > 1140< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> void</ span ></ h4 > 1141</ li > 1142</ ul > 1143</ section > 1144< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter "> 1145< a name ="with "class ="tsd-anchor "></ a > 1146< h3 > with</ h3 > 1147< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter "> 1148< li class ="tsd-signature tsd-kind-icon "> with<T>< span class ="tsd-signature-symbol "> (</ span > closure< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> function</ span >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> T</ span ></ li > 1149</ ul > 1150< ul class ="tsd-descriptions "> 1151< li class ="tsd-description "> 1152< aside class ="tsd-sources "> 1153< ul > 1154< li > Defined in livesplit_core.ts:7166</ li > 1155</ ul > 1156</ aside > 1157< div class ="tsd-comment tsd-typography "> 1158< div class ="lead "> 1159< p > Allows for scoped usage of the object. The object is guaranteed to get 1160 disposed once this function returns. You are free to dispose the object 1161 early yourself anywhere within the scope. The scope's return value gets 1162 carried to the outside of this function.</ p > 1163</ div > 1164</ div > 1165< h4 class ="tsd-type-parameters-title "> Type parameters</ h4 > 1166< ul class ="tsd-type-parameters "> 1167< li > 1168< h4 > T</ h4 > 1169</ li > 1170</ ul > 1171< h4 class ="tsd-parameters-title "> Parameters</ h4 > 1172< ul class ="tsd-parameters "> 1173< li > 1174< h5 > closure:< span class ="tsd-signature-type "> function</ span ></ h5 > 1175< ul class ="tsd-parameters "> 1176< li class ="tsd-parameter-siganture "> 1177< ul class ="tsd-signatures tsd-kind-type-literal tsd-is-not-exported "> 1178< li class ="tsd-signature tsd-kind-icon ">< span class ="tsd-signature-symbol "> (</ span > obj< span class ="tsd-signature-symbol "> :</ span >< a href ="timer.html "class ="tsd-signature-type "> Timer</ a >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< span class ="tsd-signature-type "> T</ span ></ li > 1179</ ul > 1180< ul class ="tsd-descriptions "> 1181< li class ="tsd-description "> 1182< h4 class ="tsd-parameters-title "> Parameters</ h4 > 1183< ul class ="tsd-parameters "> 1184< li > 1185< h5 > obj:< a href ="timer.html "class ="tsd-signature-type "> Timer</ a ></ h5 > 1186</ li > 1187</ ul > 1188< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> T</ span ></ h4 > 1189</ li > 1190</ ul > 1191</ li > 1192</ ul > 1193</ li > 1194</ ul > 1195< h4 class ="tsd-returns-title "> Returns< span class ="tsd-signature-type "> T</ span ></ h4 > 1196</ li > 1197</ ul > 1198</ section > 1199< section class ="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static "> 1200< a name ="new "class ="tsd-anchor "></ a > 1201< h3 >< span class ="tsd-flag ts-flagStatic "> Static</ span > new</ h3 > 1202< ul class ="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static "> 1203< li class ="tsd-signature tsd-kind-icon "> new< span class ="tsd-signature-symbol "> (</ span > run< span class ="tsd-signature-symbol "> :</ span >< a href ="run.html "class ="tsd-signature-type "> Run</ a >< span class ="tsd-signature-symbol "> )</ span >< span class ="tsd-signature-symbol "> :</ span >< a href ="timer.html "class ="tsd-signature-type "> Timer</ a >< span class ="tsd-signature-symbol "> |</ span >< span class ="tsd-signature-type "> null</ span ></ li > 1204</ ul > 1205< ul class ="tsd-descriptions "> 1206< li class ="tsd-description "> 1207< aside class ="tsd-sources "> 1208< ul > 1209< li > Defined in livesplit_core.ts:7190</ li > 1210</ ul > 1211</ aside > 1212< div class ="tsd-comment tsd-typography "> 1213< div class ="lead "> 1214< p > Creates a new Timer based on a Run object storing all the information 1215 about the splits. The Run object needs to have at least one segment, so 1216 that the Timer can store the final time. If a Run object with no 1217 segments is provided, the Timer creation fails and null is returned.</ p > 1218</ div > 1219</ div > 1220< h4 class ="tsd-parameters-title "> Parameters</ h4 > 1221< ul class ="tsd-parameters "> 1222< li > 1223< h5 > run:< a href ="run.html "class ="tsd-signature-type "> Run</ a ></ h5 > 1224</ li > 1225</ ul > 1226< h4 class ="tsd-returns-title "> Returns< a href ="timer.html "class ="tsd-signature-type "> Timer</ a > 1227< span class ="tsd-signature-symbol "> |</ span > 1228< span class ="tsd-signature-type "> null</ span > 1229</ h4 > 1230</ li > 1231</ ul > 1232</ section > 1233</ section > 1234</ div > 1235< div class ="col-4 col-menu menu-sticky-wrap menu-highlight "> 1236< nav class ="tsd-navigation primary "> 1237< ul > 1238< li class ="globals "> 1239< a href ="../globals.html ">< em > Globals</ em ></ a > 1240</ li > 1241</ ul > 1242</ nav > 1243< nav class ="tsd-navigation secondary menu-sticky "> 1244< ul class ="before-current "> 1245</ ul > 1246< ul class ="current "> 1247< li class ="current tsd-kind-class "> 1248< a href ="timer.html "class ="tsd-kind-icon "> Timer</ a > 1249< ul > 1250< li class ="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited "> 1251< a href ="timer.html#constructor "class ="tsd-kind-icon "> constructor</ a > 1252</ li > 1253< li class ="tsd-kind-property tsd-parent-kind-class tsd-is-inherited "> 1254< a href ="timer.html#ptr "class ="tsd-kind-icon "> ptr</ a > 1255</ li > 1256< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1257< a href ="timer.html#currentcomparison "class ="tsd-kind-icon "> current< wbr > Comparison</ a > 1258</ li > 1259< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1260< a href ="timer.html#currentphase "class ="tsd-kind-icon "> current< wbr > Phase</ a > 1261</ li > 1262< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1263< a href ="timer.html#currenttime "class ="tsd-kind-icon "> current< wbr > Time</ a > 1264</ li > 1265< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1266< a href ="timer.html#currenttimingmethod "class ="tsd-kind-icon "> current< wbr > Timing< wbr > Method</ a > 1267</ li > 1268< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1269< a href ="timer.html#deinitializegametime "class ="tsd-kind-icon "> deinitialize< wbr > Game< wbr > Time</ a > 1270</ li > 1271< li class ="tsd-kind-method tsd-parent-kind-class "> 1272< a href ="timer.html#dispose "class ="tsd-kind-icon "> dispose</ a > 1273</ li > 1274< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1275< a href ="timer.html#getrun "class ="tsd-kind-icon "> get< wbr > Run</ a > 1276</ li > 1277< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1278< a href ="timer.html#initializegametime "class ="tsd-kind-icon "> initialize< wbr > Game< wbr > Time</ a > 1279</ li > 1280< li class ="tsd-kind-method tsd-parent-kind-class "> 1281< a href ="timer.html#intorun "class ="tsd-kind-icon "> into< wbr > Run</ a > 1282</ li > 1283< li class ="tsd-kind-method tsd-parent-kind-class "> 1284< a href ="timer.html#intoshared "class ="tsd-kind-icon "> into< wbr > Shared</ a > 1285</ li > 1286< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1287< a href ="timer.html#isgametimeinitialized "class ="tsd-kind-icon "> is< wbr > Game< wbr > Time< wbr > Initialized</ a > 1288</ li > 1289< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1290< a href ="timer.html#isgametimepaused "class ="tsd-kind-icon "> is< wbr > Game< wbr > Time< wbr > Paused</ a > 1291</ li > 1292< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1293< a href ="timer.html#loadingtimes "class ="tsd-kind-icon "> loading< wbr > Times</ a > 1294</ li > 1295< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1296< a href ="timer.html#markasunmodified "class ="tsd-kind-icon "> mark< wbr > AsUnmodified</ a > 1297</ li > 1298< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1299< a href ="timer.html#pause "class ="tsd-kind-icon "> pause</ a > 1300</ li > 1301< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1302< a href ="timer.html#pausegametime "class ="tsd-kind-icon "> pause< wbr > Game< wbr > Time</ a > 1303</ li > 1304< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1305< a href ="timer.html#printdebug "class ="tsd-kind-icon "> print< wbr > Debug</ a > 1306</ li > 1307< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1308< a href ="timer.html#replacerun "class ="tsd-kind-icon "> replace< wbr > Run</ a > 1309</ li > 1310< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1311< a href ="timer.html#reset "class ="tsd-kind-icon "> reset</ a > 1312</ li > 1313< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1314< a href ="timer.html#resetandsetattemptaspb "class ="tsd-kind-icon "> reset< wbr > And< wbr > Set< wbr > Attempt< wbr > AsPb</ a > 1315</ li > 1316< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1317< a href ="timer.html#resume "class ="tsd-kind-icon "> resume</ a > 1318</ li > 1319< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1320< a href ="timer.html#resumegametime "class ="tsd-kind-icon "> resume< wbr > Game< wbr > Time</ a > 1321</ li > 1322< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1323< a href ="timer.html#saveaslss "class ="tsd-kind-icon "> save< wbr > AsLss</ a > 1324</ li > 1325< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1326< a href ="timer.html#setcurrenttimingmethod "class ="tsd-kind-icon "> set< wbr > Current< wbr > Timing< wbr > Method</ a > 1327</ li > 1328< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1329< a href ="timer.html#setgametime "class ="tsd-kind-icon "> set< wbr > Game< wbr > Time</ a > 1330</ li > 1331< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1332< a href ="timer.html#setloadingtimes "class ="tsd-kind-icon "> set< wbr > Loading< wbr > Times</ a > 1333</ li > 1334< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1335< a href ="timer.html#setrun "class ="tsd-kind-icon "> set< wbr > Run</ a > 1336</ li > 1337< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1338< a href ="timer.html#skipsplit "class ="tsd-kind-icon "> skip< wbr > Split</ a > 1339</ li > 1340< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1341< a href ="timer.html#split "class ="tsd-kind-icon "> split</ a > 1342</ li > 1343< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1344< a href ="timer.html#splitorstart "class ="tsd-kind-icon "> split< wbr > OrStart</ a > 1345</ li > 1346< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1347< a href ="timer.html#start "class ="tsd-kind-icon "> start</ a > 1348</ li > 1349< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1350< a href ="timer.html#switchtonextcomparison "class ="tsd-kind-icon "> switch< wbr > ToNext< wbr > Comparison</ a > 1351</ li > 1352< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1353< a href ="timer.html#switchtopreviouscomparison "class ="tsd-kind-icon "> switch< wbr > ToPrevious< wbr > Comparison</ a > 1354</ li > 1355< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1356< a href ="timer.html#togglepause "class ="tsd-kind-icon "> toggle< wbr > Pause</ a > 1357</ li > 1358< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1359< a href ="timer.html#togglepauseorstart "class ="tsd-kind-icon "> toggle< wbr > Pause< wbr > OrStart</ a > 1360</ li > 1361< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1362< a href ="timer.html#undoallpauses "class ="tsd-kind-icon "> undo< wbr > All< wbr > Pauses</ a > 1363</ li > 1364< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> 1365< a href ="timer.html#undosplit "class ="tsd-kind-icon "> undo< wbr > Split</ a > 1366</ li > 1367< li class ="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter "> 1368< a href ="timer.html#with "class ="tsd-kind-icon "> with</ a > 1369</ li > 1370< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-static "> 1371< a href ="timer.html#new "class ="tsd-kind-icon "> new</ a > 1372</ li > 1373</ ul > 1374</ li > 1375</ ul > 1376< ul class ="after-current "> 1377</ ul > 1378</ nav > 1379</ div > 1380</ div > 1381</ div > 1382< footer class ="with-border-bottom "> 1383< div class ="container "> 1384< h2 > Legend</ h2 > 1385< div class ="tsd-legend-group "> 1386< ul class ="tsd-legend "> 1387< li class ="tsd-kind-module ">< span class ="tsd-kind-icon "> Module</ span ></ li > 1388< li class ="tsd-kind-object-literal ">< span class ="tsd-kind-icon "> Object literal</ span ></ li > 1389< li class ="tsd-kind-variable ">< span class ="tsd-kind-icon "> Variable</ span ></ li > 1390< li class ="tsd-kind-function ">< span class ="tsd-kind-icon "> Function</ span ></ li > 1391< li class ="tsd-kind-function tsd-has-type-parameter ">< span class ="tsd-kind-icon "> Function with type parameter</ span ></ li > 1392< li class ="tsd-kind-index-signature ">< span class ="tsd-kind-icon "> Index signature</ span ></ li > 1393< li class ="tsd-kind-type-alias ">< span class ="tsd-kind-icon "> Type alias</ span ></ li > 1394</ ul > 1395< ul class ="tsd-legend "> 1396< li class ="tsd-kind-enum ">< span class ="tsd-kind-icon "> Enumeration</ span ></ li > 1397< li class ="tsd-kind-enum-member ">< span class ="tsd-kind-icon "> Enumeration member</ span ></ li > 1398< li class ="tsd-kind-property tsd-parent-kind-enum ">< span class ="tsd-kind-icon "> Property</ span ></ li > 1399< li class ="tsd-kind-method tsd-parent-kind-enum ">< span class ="tsd-kind-icon "> Method</ span ></ li > 1400</ ul > 1401< ul class ="tsd-legend "> 1402< li class ="tsd-kind-interface ">< span class ="tsd-kind-icon "> Interface</ span ></ li > 1403< li class ="tsd-kind-interface tsd-has-type-parameter ">< span class ="tsd-kind-icon "> Interface with type parameter</ span ></ li > 1404< li class ="tsd-kind-constructor tsd-parent-kind-interface ">< span class ="tsd-kind-icon "> Constructor</ span ></ li > 1405< li class ="tsd-kind-property tsd-parent-kind-interface ">< span class ="tsd-kind-icon "> Property</ span ></ li > 1406< li class ="tsd-kind-method tsd-parent-kind-interface ">< span class ="tsd-kind-icon "> Method</ span ></ li > 1407< li class ="tsd-kind-index-signature tsd-parent-kind-interface ">< span class ="tsd-kind-icon "> Index signature</ span ></ li > 1408</ ul > 1409< ul class ="tsd-legend "> 1410< li class ="tsd-kind-class ">< span class ="tsd-kind-icon "> Class</ span ></ li > 1411< li class ="tsd-kind-class tsd-has-type-parameter ">< span class ="tsd-kind-icon "> Class with type parameter</ span ></ li > 1412< li class ="tsd-kind-constructor tsd-parent-kind-class ">< span class ="tsd-kind-icon "> Constructor</ span ></ li > 1413< li class ="tsd-kind-property tsd-parent-kind-class ">< span class ="tsd-kind-icon "> Property</ span ></ li > 1414< li class ="tsd-kind-method tsd-parent-kind-class ">< span class ="tsd-kind-icon "> Method</ span ></ li > 1415< li class ="tsd-kind-accessor tsd-parent-kind-class ">< span class ="tsd-kind-icon "> Accessor</ span ></ li > 1416< li class ="tsd-kind-index-signature tsd-parent-kind-class ">< span class ="tsd-kind-icon "> Index signature</ span ></ li > 1417</ ul > 1418< ul class ="tsd-legend "> 1419< li class ="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited ">< span class ="tsd-kind-icon "> Inherited constructor</ span ></ li > 1420< li class ="tsd-kind-property tsd-parent-kind-class tsd-is-inherited ">< span class ="tsd-kind-icon "> Inherited property</ span ></ li > 1421< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited ">< span class ="tsd-kind-icon "> Inherited method</ span ></ li > 1422< li class ="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited ">< span class ="tsd-kind-icon "> Inherited accessor</ span ></ li > 1423</ ul > 1424< ul class ="tsd-legend "> 1425< li class ="tsd-kind-property tsd-parent-kind-class tsd-is-protected ">< span class ="tsd-kind-icon "> Protected property</ span ></ li > 1426< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-protected ">< span class ="tsd-kind-icon "> Protected method</ span ></ li > 1427< li class ="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected ">< span class ="tsd-kind-icon "> Protected accessor</ span ></ li > 1428</ ul > 1429< ul class ="tsd-legend "> 1430< li class ="tsd-kind-property tsd-parent-kind-class tsd-is-private ">< span class ="tsd-kind-icon "> Private property</ span ></ li > 1431< li class ="tsd-kind-method tsd-parent-kind-class tsd-is-private ">< span class ="tsd-kind-icon "> Private method</ span ></ li > 1432< li class ="tsd-kind-accessor tsd-parent-kind-class tsd-is-private ">< span class ="tsd-kind-icon "> Private accessor</ span ></ li > 1433</ ul > 1434< ul class ="tsd-legend "> 1435< li class ="tsd-kind-property tsd-parent-kind-class tsd-is-static ">< span class ="tsd-kind-icon "> Static property</ span ></ li > 1436< li class ="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static ">< span class ="tsd-kind-icon "> Static method</ span ></ li > 1437</ ul > 1438</ div > 1439</ div > 1440</ footer > 1441< div class ="container tsd-generator "> 1442< p > Generated using< a href ="http://typedoc.org/ "target ="_blank "> TypeDoc</ a ></ p > 1443</ div > 1444< div class ="overlay "></ div > 1445< script src ="../assets/js/main.js "></ script > 1446< script > if ( location . protocol == 'file:' ) document . write ( '<script src="../assets/js/search.js"><' + '/script>' );</ script > 1447</ body > 1448</ html >