Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] [OT] Displaying time and starting from zero
- Date: Sat, 27 Mar 2010 02:39:49 +0900
- From: Dave M G <dave@example.com>
- Subject: Re: [tlug] [OT] Displaying time and starting from zero
- References: <4BA9D37D.6030402@example.com> <4fac0ea81003240326h555714a7i5b3df39e23ecaef6@example.com> <4BAAB598.2050908@example.com> <4BAABA8A.8000805@example.com>
- User-agent: Thunderbird 2.0.0.24 (X11/20100317)
Darren, Thanks for responding. > Math.floor() means divide and round down. I think you'll get what you > want by changing the first one to round-up: > var seconds = Math.ceil(elapsed/1000); Yeah, that's done it! I think part of the issue was not just counting from zero, but also that there could be some milliseconds of processing time, including reading files from servers and everything. Using the ceiling gives enough buffer to not have to worry about milliseconds of different. Thanks to everyone for all the help and advice! -- Dave M G
- References:
- [tlug] [OT] Displaying time and starting from zero
- From: Dave M G
- Re: [tlug] [OT] Displaying time and starting from zero
- From: Travis Cardwell
- Re: [tlug] [OT] Displaying time and starting from zero
- From: Dave M G
- Re: [tlug] [OT] Displaying time and starting from zero
- From: Darren Cook
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] can anyone help ..I need to repair my grub ...
- Next by Date: Re: [tlug] can anyone help ..I need to repair my grub ...
- Previous by thread: Re: [tlug] [OT] Displaying time and starting from zero
- Next by thread: [tlug] Customized log file monitor
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links