Blender
V5.3
source
blender
blenlib
BLI_math_time.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2021 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
10
11
namespace
blender
{
12
13
/* -------------------------------------------------------------------- */
16
17
#define SECONDS_IN_MILLISECONDS 0.001
18
#define SECONDS_IN_MINUTE 60.0
19
#define MINUTES_IN_HOUR 60.0
20
#define HOURS_IN_DAY 24.0
21
22
#define MINUTES_IN_DAY (MINUTES_IN_HOUR * HOURS_IN_DAY)
23
#define SECONDS_IN_DAY (MINUTES_IN_DAY * SECONDS_IN_MINUTE)
24
#define SECONDS_IN_HOUR (MINUTES_IN_HOUR * SECONDS_IN_MINUTE)
25
27
28
/* -------------------------------------------------------------------- */
31
40
void
BLI_math_time_seconds_decompose
(
double
seconds,
41
double
*r_days,
42
double
*r_hours,
43
double
*r_minutes,
44
double
*r_seconds,
45
double
*r_milliseconds);
46
48
49
/* -------------------------------------------------------------------- */
52
53
/* None. */
54
56
57
}
// namespace blender
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::BLI_math_time_seconds_decompose
void BLI_math_time_seconds_decompose(double seconds, double *r_days, double *r_hours, double *r_minutes, double *r_seconds, double *r_milliseconds)
Definition
math_time.cc:14
Generated on
for Blender by
doxygen
1.18.0