Added get_cyclecount() method.

This commit is contained in:
Jennifer Averett
2012-04-16 12:39:58 -05:00
parent 8f6d1299d7
commit d9e838b882
3 changed files with 32 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
/**
* @file
*
* @ingroup rtems_bsd_rtems
*
* @brief TODO.
*/
/*
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*/
#include <string.h>
#include <stdio.h>
#include <rtems.h>
u_int64_t
get_cyclecount(void)
{
u_int64_t value;
value = rtems_clock_get_ticks_since_boot();
return value;
}