Blender
V5.0
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
10
11
/* -------------------------------------------------------------------- */
14
15
#define SECONDS_IN_MILLISECONDS 0.001
16
#define SECONDS_IN_MINUTE 60.0
17
#define MINUTES_IN_HOUR 60.0
18
#define HOURS_IN_DAY 24.0
19
20
#define MINUTES_IN_DAY (MINUTES_IN_HOUR * HOURS_IN_DAY)
21
#define SECONDS_IN_DAY (MINUTES_IN_DAY * SECONDS_IN_MINUTE)
22
#define SECONDS_IN_HOUR (MINUTES_IN_HOUR * SECONDS_IN_MINUTE)
23
25
26
/* -------------------------------------------------------------------- */
29
38
void
BLI_math_time_seconds_decompose
(
double
seconds,
39
double
*r_days,
40
double
*r_hours,
41
double
*r_minutes,
42
double
*r_seconds,
43
double
*r_milliseconds);
44
46
47
/* -------------------------------------------------------------------- */
50
51
/* None. */
52
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:12
Generated on
for Blender by
doxygen
1.16.1