Quote:
|
Originally Posted by Python523
Must I point out the obvious.
According to your post, a%b = a - int(a/b)*b
so if I translate Evil_Trunks's variation of your script
NPC Code:
this.hours = int(this.temp/(60*60));
this.mins = int((this.temp/60)%60);
this.secs = int((this.temp)%60);
to
NPC Code:
this.hours = int(this.temp/(60*60));
this.mins = int(this.temp/60 - int(this.temp/60^2)*60);
this.secs = int(this.temp - int(this.temp/60)*60);
You tell me what looks more efficient. Mine or yours.
|
ah i see what you mean now you lost me for a second, yes your its better in that sence , mines better on cpu load