silc_timer_tick

SYNOPSIS

    SilcUInt64 silc_timer_tick(SilcTimer &timer, SilcBool adjust)

DESCRIPTION

Returns the current CPU tick count. You should call the silc_timer_synchronize before using this function to make sure the overhead of measuring the CPU tick count is not included in the tick count. If the `adjust' is TRUE and the silc_timer_synchronize has been called the returned value is adjusted to be more accurate.

EXAMPLE

    // Synchronize timer for more accurate CPU tick counts
    silc_timer_synchronize(&timer);
    start = silc_timer_tick(&timer, FALSE);
    do_something();
    stop = silc_timer_tick(&timer, TRUE);