Blender V4.3
subdiv_stats.cc File Reference
#include "BKE_subdiv.hh"
#include <cstdio>
#include "BLI_time.h"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::bke
 
namespace  blender::bke::subdiv
 

Macros

#define STATS_PRINT_TIME(stats, value, description)
 

Functions

void blender::bke::subdiv::stats_init (SubdivStats *stats)
 
void blender::bke::subdiv::stats_begin (SubdivStats *stats, StatsValue value)
 
void blender::bke::subdiv::stats_end (SubdivStats *stats, StatsValue value)
 
void blender::bke::subdiv::stats_reset (SubdivStats *stats, StatsValue value)
 
void blender::bke::subdiv::stats_print (const SubdivStats *stats)
 

Macro Definition Documentation

◆ STATS_PRINT_TIME

#define STATS_PRINT_TIME ( stats,
value,
description )
Value:
do { \
if ((stats)->value > 0.0) { \
printf(" %s: %f (sec)\n", description, (stats)->value); \
} \
} while (false)

Referenced by blender::bke::subdiv::stats_print().