Blender
V4.3
source
blender
blenlib
BLI_math_time.h
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
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
/* -------------------------------------------------------------------- */
19
#define SECONDS_IN_MILLISECONDS 0.001
20
#define SECONDS_IN_MINUTE 60.0
21
#define MINUTES_IN_HOUR 60.0
22
#define HOURS_IN_DAY 24.0
23
24
#define MINUTES_IN_DAY (MINUTES_IN_HOUR * HOURS_IN_DAY)
25
#define SECONDS_IN_DAY (MINUTES_IN_DAY * SECONDS_IN_MINUTE)
26
#define SECONDS_IN_HOUR (MINUTES_IN_HOUR * SECONDS_IN_MINUTE)
27
30
/* -------------------------------------------------------------------- */
42
void
BLI_math_time_seconds_decompose
(
double
seconds,
43
double
*r_days,
44
double
*r_hours,
45
double
*r_minutes,
46
double
*r_seconds,
47
double
*r_milliseconds);
48
51
/* -------------------------------------------------------------------- */
55
/* None. */
56
59
#ifdef __cplusplus
60
}
61
#endif
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.c:12
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0