将DoubleTime改名为PreciseTime
This commit is contained in:
parent
5f6aa10d7c
commit
31f3c23c4b
@ -49,7 +49,7 @@ int main(int,char **)
|
||||
|
||||
tp=t;
|
||||
|
||||
st=GetDoubleTime();
|
||||
st=GetPreciseTime();
|
||||
for(int i=0;i<TEST_COUNT;i++)
|
||||
{
|
||||
*m=tp->GetMatrix();
|
||||
@ -57,7 +57,7 @@ int main(int,char **)
|
||||
++tp;
|
||||
++m;
|
||||
}
|
||||
et=GetDoubleTime();
|
||||
et=GetPreciseTime();
|
||||
|
||||
std::cout<<"Transform::GetMatrix() "<<TEST_COUNT<<" time: "<<et-st<<"sec."<<std::endl;
|
||||
return 0;
|
||||
|
@ -66,7 +66,7 @@ void Pick2DTriangle()
|
||||
draw.DrawLine(v[1],v[2]);
|
||||
draw.DrawLine(v[2],v[0]);
|
||||
|
||||
double st=GetDoubleTime();
|
||||
double st=GetPreciseTime();
|
||||
|
||||
for(int i=0;i<10000;i++)
|
||||
{
|
||||
@ -81,7 +81,7 @@ void Pick2DTriangle()
|
||||
draw.PutPixel(t);
|
||||
}
|
||||
|
||||
double et=GetDoubleTime();
|
||||
double et=GetPreciseTime();
|
||||
|
||||
std::cout<<"test 10000 points in a triangle cost "<<(et-st)<<" seconds."<<std::endl;
|
||||
|
||||
|
@ -10,7 +10,7 @@ constexpr const size_t TIME_OUT_FRAC=6; //小数输出位数
|
||||
|
||||
int main(int,char **)
|
||||
{
|
||||
const double cur_time=GetDoubleTime();
|
||||
const double cur_time=GetPreciseTime();
|
||||
|
||||
Date d;
|
||||
Time t;
|
||||
|
@ -39,13 +39,13 @@ int os_main(int argc,os_char **argv)
|
||||
|
||||
hash_code=new char[hash_length];
|
||||
|
||||
start_time=GetDoubleTime();
|
||||
start_time=GetPreciseTime();
|
||||
|
||||
h->Init();
|
||||
h->Update(file_data,file_length);
|
||||
h->Final(hash_code);
|
||||
|
||||
end_time=GetDoubleTime();
|
||||
end_time=GetPreciseTime();
|
||||
|
||||
ToLowerHexStr(hash_str,hash_code,hash_length);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user