Files
diplomarbeit/Quantum Controller/SW/testapplication-0.0.1/BpPort.c
T
Matthias 373a8c32b2 Added Software projects
git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@55 9fe90eed-be63-e94b-8204-d34ff4c2ff93
2008-12-23 10:34:08 +00:00

19 lines
337 B
C

#include <stdio.h>
#include "BpPort.h"
#include <sys/time.h>
#include <time.h>
portTickType xTaskGetTickCount()
{
struct timeval tv;
portTickType result;
unsigned long intermediate;
gettimeofday(&tv, NULL);
intermediate = tv.tv_sec * 1000;
result = intermediate + (tv.tv_usec / 1000);
return result;
}