Ejemplo n.º 1
0
void timer_monotonic_get(struct mono_time *mt)
{
    /* We don't have to call mct_start() here
     * because it was already called int he bootblock
     */

    mono_time_set_usecs(mt, mct_raw_value() / clocks_per_usec);
}
Ejemplo n.º 2
0
void timer_monotonic_get(struct mono_time *mt)
{
	if (!initialized) {
		mct_start();
		initialized = 1;
	}

	mono_time_set_usecs(mt, mct_raw_value() / clocks_per_usec);
}