aboutsummaryrefslogtreecommitdiff
path: root/backend/backend.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-30 15:50:31 -0400
committerGitHub <noreply@github.com>2017-10-30 15:50:31 -0400
commitebca06bfe46d18763c79f99382ce7c9717b538a6 (patch)
tree171dfa1636c409cc5b4fbf8f5ddadea035e99a3d /backend/backend.c
parent2e7cfd21e4c884910a703fab44009ba18c20f002 (diff)
parent875a5b446fcf04314ee102624bda7ae18939837e (diff)
Merge pull request #358 from acrisci/refactor/sec-to-msec
refactor input time_sec to time_msec
Diffstat (limited to 'backend/backend.c')
-rw-r--r--backend/backend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/backend.c b/backend/backend.c
index d5cd1f70..ed21fa1f 100644
--- a/backend/backend.c
+++ b/backend/backend.c
@@ -136,3 +136,7 @@ error_session:
wlr_session_destroy(session);
return NULL;
}
+
+uint32_t usec_to_msec(uint64_t usec) {
+ return (uint32_t)(usec / 1000);
+}