forked from mirrors/0ad
fixes+improvements from work:
timer: cleanup, remove duplication topology: fix incorrect param order tsc: ensure MSRs are available before accessing msr: add prefix to make clear that registers are nehalem-specific This was SVN commit r7892.
This commit is contained in:
@@ -182,7 +182,7 @@ JSBool StopJsTimer(JSContext* cx, JSObject*, uintN argc, jsval* argv, jsval* rva
|
||||
TimerUnit now;
|
||||
now.SetFromTimer();
|
||||
now.Subtract(js_timer_overhead);
|
||||
timer_BillClient(&js_timer_clients[slot], js_start_times[slot], now);
|
||||
BillingPolicy_Default()(&js_timer_clients[slot], js_start_times[slot], now);
|
||||
js_start_times[slot].SetToZero();
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user