![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jun 2004
Posts: 2
Rep Power: 0
![]() |
heyguys, well what im doing is working on a game currently, and what it has is something called ticks, what this does is liek every 5 minutes it updates the dataase and to reduce the amount of connections and queries to the database instead of changing certainfields.. for exampel that only run 20 "ticks" after you set somehting, i want to set a finish date, the only problem i run into is that the end date is usually right in between a tick... my plan now is to justround ot a number that is dividable by 300 in the unix time format.
hmm.. lol thats not that clear but for example if i had this is a time: 87587978 i would want to round that to the nearest number that is divisible by three hundred lol if anyone has nay solution please reply i thought of maybe using osmehting sorta liek for($i = time;$i%300;$i++) { $endtime = $i } but that would be very bakc breaking sorta... |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|