Blender V5.0
time.h File Reference
#include <functional>
#include "util/string.h"

Go to the source code of this file.

Classes

class  scoped_timer
class  fast_timer
class  scoped_callback_timer

Functions

CCL_NAMESPACE_BEGIN double time_dt ()
void time_sleep (const double t)
uint64_t time_fast_tick (uint32_t *last_cpu)
uint64_t time_fast_frequency ()
string time_human_readable_from_seconds (const double seconds)
double time_human_readable_to_seconds (const string &time_string)

Function Documentation

◆ time_dt()

◆ time_fast_frequency()

uint64_t time_fast_frequency ( )

Definition at line 135 of file time.cpp.

Referenced by Pass::get_info().

◆ time_fast_tick()

uint64_t time_fast_tick ( uint32_t * last_cpu)

Definition at line 129 of file time.cpp.

Referenced by fast_timer::fast_timer(), and fast_timer::lap().

◆ time_human_readable_from_seconds()

string time_human_readable_from_seconds ( const double seconds)

◆ time_human_readable_to_seconds()

double time_human_readable_to_seconds ( const string & time_string)

Definition at line 156 of file time.cpp.

References i, length(), pow, result, and string_split().

Referenced by merge_layer_render_time(), merge_render_time(), TEST(), TEST(), TEST(), TEST(), and TEST().

◆ time_sleep()

void time_sleep ( const double t)

Definition at line 56 of file time.cpp.