Add initial BLI_math_time with a 'seconds decompose' function.

Allows to decompose a given amount of seconds into a random set of
days/hours/minutes/seconds/milliseconds values.

Also add matching test.

Differential Revision: https://developer.blender.org/D11581
This commit is contained in:
2021-06-22 17:00:18 +02:00
parent f4e3b1e573
commit feaf309de7
5 changed files with 159 additions and 0 deletions

View File

@@ -70,4 +70,5 @@
#include "BLI_math_rotation.h"
#include "BLI_math_solvers.h"
#include "BLI_math_statistics.h"
#include "BLI_math_time.h"
#include "BLI_math_vector.h"