06.06.2010, 10:44
Very nice idea, though there's some things that should be optimized IMO.
You're creating string locally, you should create it global.
You're multiplying by 6000, which is 6 seconds, not 60 seconds. ( if that's what you're trying to do, multiply by 1 minute. )
And I believe (I'm not sure though) That if you are going to use more than one of the same function calls, assigning it to a varible is faster than calling it raw, but I think that's just a rumour, I don't know, it's in Y_Less's Code Optimizations thread.
Anyway good work, though this won't work until you've changed 6000 to 60000.
(Well it will, but it will multiply WKTIME by 6000, so the default val of 20 would be 120000, 2 minutes, instead of 20 minutes.)
You're creating string locally, you should create it global.
You're multiplying by 6000, which is 6 seconds, not 60 seconds. ( if that's what you're trying to do, multiply by 1 minute. )
And I believe (I'm not sure though) That if you are going to use more than one of the same function calls, assigning it to a varible is faster than calling it raw, but I think that's just a rumour, I don't know, it's in Y_Less's Code Optimizations thread.
Anyway good work, though this won't work until you've changed 6000 to 60000.
(Well it will, but it will multiply WKTIME by 6000, so the default val of 20 would be 120000, 2 minutes, instead of 20 minutes.)