stdafx.cpp
来自「基于最小二乘法圆的拟合」· C++ 代码 · 共 23 行
CPP
23 行
// stdafx.cpp : source file that includes just the standard includes
// IPLab.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
//////////////////////////////////////////////////////////////////////////
///Global Function
int GetTimeDiff(SYSTEMTIME startTime,SYSTEMTIME endTime)
{
int timeDiff=0;
int mD = endTime.wMilliseconds-startTime.wMilliseconds;
int sD = endTime.wSecond-startTime.wSecond;
int minD = endTime.wMinute - startTime.wMinute;
int hD = endTime.wHour - startTime.wHour;
int dD = endTime.wDay - startTime.wDay;
timeDiff = (((dD*24 + hD)*60 + minD)*60 + sD)*1000 + mD;
return timeDiff;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?