[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] NOW() function the unit in xen scheduler
Hi, all In xen code, some place will call NOW() function. Now I do not know how to know the unit for this function. There are two places given the definition for this function NOW() one is xen-4.2.1/extras/mini-os/include/Time.h In this file xen-4.2.1/extras/mini-os/include/Time.h, from the comment NOW() the unit for time is /*System Time 64 bit value containing the nanoseconds elapsed since boot time.*/ the other is xen-4.2.1/xen/include/xen/Time.h In xen schedule related places, they call the function NOW() in the xen-4.2.1/xen/include/xen/Time.h. At first, I think NOW() the unit for time in xen-4.2.1/xen/include/xen/Time.h file, should also nanosecond. However, From here, set_timer(&spc->ticker, NOW() + MICROSECS(prv->tick_period_us) ); In the function csched_alloc_pdata(), it seems the unit is microsecs. Now I am confused with it. If someone knows the answer, please let me know. Thank you in advance! _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |