aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtctimer.c
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2002-11-01 12:50:12 +0000
committervektor <devnull@localhost>2002-11-01 12:50:12 +0000
commitc5df507b47954da33614291f0b5aa5ad8eacfdb9 (patch)
tree7ff89ec057e72ee7702cfc7f5cfc527407c4dc2a /src/rtctimer.c
parent740eba4e57183ef9631c2257c750286c6b9b65dc (diff)
Cleanup to the /dev/rtc code in tvtime.c. Added a call to return
the current rtc resolution to the rtctimer object.
Diffstat (limited to 'src/rtctimer.c')
-rw-r--r--src/rtctimer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rtctimer.c b/src/rtctimer.c
index d0e2d61..c24cf34 100644
--- a/src/rtctimer.c
+++ b/src/rtctimer.c
@@ -167,6 +167,11 @@ int rtctimer_stop_clock( rtctimer_t *rtctimer )
return was_running;
}
+int rtctimer_get_resolution( rtctimer_t *rtctimer )
+{
+ return rtctimer->current_hz;
+}
+
int rtctimer_get_usecs( rtctimer_t *rtctimer )
{
return rtctimer->usecs;

Privacy Policy