Blender
V3.3
source
blender
blenlib
BLI_math_time.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2021 Blender Foundation. All rights reserved. */
3
4
#pragma once
5
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
/* -------------------------------------------------------------------- */
18
#define SECONDS_IN_MILLISECONDS 0.001
19
#define SECONDS_IN_MINUTE 60.0
20
#define MINUTES_IN_HOUR 60.0
21
#define HOURS_IN_DAY 24.0
22
23
#define MINUTES_IN_DAY (MINUTES_IN_HOUR * HOURS_IN_DAY)
24
#define SECONDS_IN_DAY (MINUTES_IN_DAY * SECONDS_IN_MINUTE)
25
#define SECONDS_IN_HOUR (MINUTES_IN_HOUR * SECONDS_IN_MINUTE)
26
29
/* -------------------------------------------------------------------- */
41
void
BLI_math_time_seconds_decompose
(
double
seconds,
42
double
*r_days,
43
double
*r_hours,
44
double
*r_minutes,
45
double
*r_seconds,
46
double
*r_milliseconds);
47
50
/* -------------------------------------------------------------------- */
54
/* None. */
55
58
#ifdef __cplusplus
59
}
60
#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:10
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1