Exemple #1
0
void Bench::start( const std::string& description )
{
    _timers.push( std::make_pair( description, timer_t() ) );
    _timers.top().second.start();
}
static inline int Random(int x)
{
    srand((int)timer_t(0));
    int rand = (int)(random() % x);
    return rand;
}