# He to reset getTime

**URL:** https://forum.kirupa.com/t/he-to-reset-gettime/7675
**Category:** flash
**Created:** [November 5, 2002, 5:17pm UTC](https://forum.kirupa.com/t/he-to-reset-gettime/7675 "2002-11-05T17:17:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sintax321](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sintax321](https://forum.kirupa.com/u/sintax321)
#### Post date: [November 5, 2002, 5:17pm UTC](https://forum.kirupa.com/t/he-to-reset-gettime/7675/1 "2002-11-05T17:17:16Z")

</div>

How do I reset the get time action. When I play my game it just keeps adding up. I want the time to rest if the use chosses to play again. Also How do u rest a whol SWF. Is there a way

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 5:30pm UTC](https://forum.kirupa.com/t/he-to-reset-gettime/7675/2 "2002-11-05T17:30:17Z")

</div>

function fStartTimer(){  
\_root.nStart = getTimer();  
}  
function fGetElapsedTime(){  
return (getTimer()-\_root.nStart);  
}

to reset the clock:  
fStartTimer();

to retrieve the elapsed time since the last reset:  
fGetElapsedTime();

have a nice day,  
jeremy

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 5, 2002, 5:31pm UTC](https://forum.kirupa.com/t/he-to-reset-gettime/7675/3 "2002-11-05T17:31:07Z")

</div>

I’ll try that out. Thanks:)
