Blender  V3.3
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
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