反陀螺v2.0

This commit is contained in:
xinyang
2019-08-09 01:24:58 +08:00
parent faae07b5b3
commit 65a55353d6
8 changed files with 90 additions and 67 deletions

View File

@@ -5,12 +5,15 @@
#ifndef _PLATFORM_H_
#define _PLATFORM_H_
typedef struct{
int second;
int millisecond;
} systime;
//typedef struct{
// float second;
// float millisecond;
//} systime;
typedef double systime;
void getsystime(systime &t);
double getTimeIntervalms(const systime &now, const systime &last);
#if defined(Linux) || defined(Darwin)
#include <sys/time.h>