## CPU

CPU — Check the capabilities of the current CPU

## Synopsis

    unsigned int        oil_cpu_get_flags                   (void);
    double              oil_cpu_get_ticks_per_second        (void);

## Description

## Details

### oil_cpu_get_flags ()

    unsigned int        oil_cpu_get_flags                   (void);

Returns a bitmask containing the available CPU features.

Returns : | the CPU features.

### oil_cpu_get_ticks_per_second ()

    double              oil_cpu_get_ticks_per_second        (void);

Returns the estimated number of ticks per second. This feature is currently unimplemented.

This function may take several milliseconds or more to execute in order to calculate a good estimate of the number of ticks (as measured by the profiling functions) per second. Note that the number of ticks per second is often dependent on the CPU frequency, which can change dynamically. Thus the value returned by this function may be incorrect as soon as it is returned.

Returns : | a double