Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-dhyana
Commits
58a3a4cc
Commit
58a3a4cc
authored
Nov 20, 2019
by
Abdullah Amjad
Browse files
timer using linux timers
parent
23c29e91
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/DhyanaTimer.h
View file @
58a3a4cc
...
...
@@ -30,18 +30,13 @@
#include
<ostream>
#include
<map>
// #include <process.h>
// #include <windows.h>
#include
<stdio.h>
// #include <Mmsystem.h>
#pragma comment(lib, "Winmm.lib" )
#include
"DhyanaCompatibility.h"
#include
"lima/Debug.h"
#include
"DhyanaCamera.h"
#include
<errno.h>
using
namespace
std
;
namespace
lima
...
...
@@ -87,13 +82,11 @@ namespace lima
virtual
void
on_timer
()
=
0
;
protected:
// int
m_timer_id;
timer_t
m_timer_id
;
long
m_period_ms
;
// UINT m_resolution;
int
m_nb_triggers
;
struct
sigevent
m_se
;
struct
itimerspec
m_ts
;
timer_t
m_timer_id
;
};
/******************************************************************
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment