Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libmtime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libmtime
Commits
3efa05ac
Commit
3efa05ac
authored
5 years ago
by
Florian
Browse files
Options
Downloads
Patches
Plain Diff
added wrapper function divideTimedelta.
parent
9acd9e79
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/mtime_timedelta.h
+5
-0
5 additions, 0 deletions
include/mtime_timedelta.h
src/mtime_timedelta.c
+250
-180
250 additions, 180 deletions
src/mtime_timedelta.c
with
255 additions
and
180 deletions
include/mtime_timedelta.h
+
5
−
0
View file @
3efa05ac
...
...
@@ -58,6 +58,7 @@ struct _timedelta
struct
_divisionquotienttimespan
{
int64_t
quotient
;
///< Quotient of two timedeltas.
int64_t
remainder_days
;
///< Remainder in days of two timedeltas division.
int64_t
remainder_in_ms
;
///< Remainder in milli seconds of two timedeltas division.
};
...
...
@@ -85,6 +86,10 @@ timeDeltaToJulianDelta(struct _timedelta *td, struct _datetime *dt, struct _juli
struct
_timedelta
*
julianDeltaToTimeDelta
(
struct
_juliandelta
*
jd
,
struct
_datetime
*
dt
,
struct
_timedelta
*
td_return
);
struct
_divisionquotienttimespan
*
divideTimeDelta
(
struct
_timedelta
*
dividend
,
struct
_timedelta
*
divisor
,
struct
_datetime
*
base_dt
,
struct
_divisionquotienttimespan
*
quo_ret
);
struct
_divisionquotienttimespan
*
divideTimeDeltaInSeconds
(
struct
_timedelta
*
dividend
,
struct
_timedelta
*
divisor
,
struct
_datetime
*
base_dt
,
struct
_divisionquotienttimespan
*
quo_ret
);
...
...
This diff is collapsed.
Click to expand it.
src/mtime_timedelta.c
+
250
−
180
View file @
3efa05ac
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment