Lines Matching refs:curtime
98 hrtime_t curtime; in init_mstate() local
105 curtime = gethrtime_unscaled(); in init_mstate()
107 ms->ms_start = curtime; in init_mstate()
109 ms->ms_state_start = curtime; in init_mstate()
112 t->t_hrtime = curtime; in init_mstate()
157 cpu->cpu_acct[cpu->cpu_mstate] += curtime - cpu->cpu_mstate_start; \
159 cpu->cpu_mstate_start = curtime; \
164 new_cpu_mstate(int cmstate, hrtime_t curtime) in new_cpu_mstate() argument
397 hrtime_t curtime; in syscall_mstate() local
411 curtime = gethrtime_unscaled(); in syscall_mstate()
412 newtime = curtime - ms->ms_state_start; in syscall_mstate()
414 curtime = gethrtime_unscaled(); in syscall_mstate()
415 newtime = curtime - ms->ms_state_start; in syscall_mstate()
423 ms->ms_state_start = curtime; in syscall_mstate()
608 hrtime_t curtime; in new_mstate() local
630 curtime = gethrtime_unscaled(); in new_mstate()
633 (void) cpu_update_pct(t, curtime); in new_mstate()
650 ztime = newtime = curtime - ms->ms_state_start; in new_mstate()
652 curtime = gethrtime_unscaled(); in new_mstate()
659 ms->ms_state_start = curtime; in new_mstate()
690 new_cpu_mstate(CMS_USER, curtime); in new_mstate()
693 new_cpu_mstate(CMS_SYSTEM, curtime); in new_mstate()
710 hrtime_t curtime; in restore_mstate() local
728 curtime = gethrtime_unscaled(); in restore_mstate()
729 (void) cpu_update_pct(t, curtime); in restore_mstate()
774 waitrq = curtime; in restore_mstate()
779 curtime = gethrtime_unscaled(); in restore_mstate()
792 waittime = curtime - waitrq; in restore_mstate()
796 ms->ms_state_start = curtime; in restore_mstate()