Blender V4.3
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
12extern "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/* -------------------------------------------------------------------- */
42void 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
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