Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
f5301388
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f5301388
编写于
11月 06, 2005
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix newly introduced typos and warnings in ./apps.
上级
0a39d8f2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
8 deletion
+9
-8
apps/apps.c
apps/apps.c
+9
-2
apps/speed.c
apps/speed.c
+0
-6
未找到文件。
apps/apps.c
浏览文件 @
f5301388
...
@@ -2375,6 +2375,7 @@ double app_tminterval(int stop,int usertime)
...
@@ -2375,6 +2375,7 @@ double app_tminterval(int stop,int usertime)
FILETIME
now
;
FILETIME
now
;
double
ret
=
0
;
double
ret
=
0
;
static
ULARGE_INTEGER
tmstart
;
static
ULARGE_INTEGER
tmstart
;
static
int
warning
=
1
;
#ifdef _WIN32_WINNT
#ifdef _WIN32_WINNT
static
HANDLE
proc
=
NULL
;
static
HANDLE
proc
=
NULL
;
...
@@ -2394,6 +2395,12 @@ double app_tminterval(int stop,int usertime)
...
@@ -2394,6 +2395,12 @@ double app_tminterval(int stop,int usertime)
else
else
#endif
#endif
{
{
if
(
usertime
&&
warning
)
{
BIO_printf
(
bio_err
,
"To get meaningful results, run "
"this program on idle system.
\n
"
warning
=
1
;
}
SYSTEMTIME
systime
;
SYSTEMTIME
systime
;
GetSystemTime
(
&
systime
);
GetSystemTime
(
&
systime
);
SystemTimeToFileTime
(
&
systime
,
&
now
);
SystemTimeToFileTime
(
&
systime
,
&
now
);
...
@@ -2428,7 +2435,7 @@ double app_tminterval(int stop,int usertime)
...
@@ -2428,7 +2435,7 @@ double app_tminterval(int stop,int usertime)
if
(
usertime
)
now
=
rus
.
tms_utime
;
if
(
usertime
)
now
=
rus
.
tms_utime
;
if
(
stop
==
TMSTART
)
tmstart
=
now
;
if
(
stop
==
TM
_
START
)
tmstart
=
now
;
else
ret
=
(
now
-
tmstart
)
/
(
double
)
sysconf
(
_SC_CLK_TCK
);
else
ret
=
(
now
-
tmstart
)
/
(
double
)
sysconf
(
_SC_CLK_TCK
);
return
(
ret
);
return
(
ret
);
...
@@ -2448,7 +2455,7 @@ double app_tminterval(int stop,int usertime)
...
@@ -2448,7 +2455,7 @@ double app_tminterval(int stop,int usertime)
if
(
usertime
)
getrusage
(
RUSAGE_SELF
,
&
rus
),
now
=
rus
.
ru_time
;
if
(
usertime
)
getrusage
(
RUSAGE_SELF
,
&
rus
),
now
=
rus
.
ru_time
;
else
gettimeofday
(
&
now
,
NULL
);
else
gettimeofday
(
&
now
,
NULL
);
if
(
stop
==
TMSTART
)
tmstart
=
now
;
if
(
stop
==
TM
_
START
)
tmstart
=
now
;
else
ret
=
(
(
now
.
tv_sec
+
now
.
tv_usec
*
1e-6
)
else
ret
=
(
(
now
.
tv_sec
+
now
.
tv_usec
*
1e-6
)
-
(
tmstart
.
tv_sec
+
tmstart
.
tv_usec
*
1e-6
)
);
-
(
tmstart
.
tv_sec
+
tmstart
.
tv_usec
*
1e-6
)
);
...
...
apps/speed.c
浏览文件 @
f5301388
...
@@ -183,7 +183,6 @@
...
@@ -183,7 +183,6 @@
#define BUFSIZE ((long)1024*8+1)
#define BUFSIZE ((long)1024*8+1)
int
run
=
0
;
int
run
=
0
;
static
char
ftime_used
=
0
,
times_used
=
0
,
gettimeofday_used
=
0
,
getrusage_used
=
0
;
static
int
mr
=
0
;
static
int
mr
=
0
;
static
int
usertime
=
1
;
static
int
usertime
=
1
;
...
@@ -1050,11 +1049,6 @@ int MAIN(int argc, char **argv)
...
@@ -1050,11 +1049,6 @@ int MAIN(int argc, char **argv)
if
(
usertime
==
0
&&
!
mr
)
if
(
usertime
==
0
&&
!
mr
)
BIO_printf
(
bio_err
,
"You have chosen to measure elapsed time instead of user CPU time.
\n
"
);
BIO_printf
(
bio_err
,
"You have chosen to measure elapsed time instead of user CPU time.
\n
"
);
if
(
usertime
<=
0
&&
!
mr
)
{
BIO_printf
(
bio_err
,
"To get the most accurate results, try to run this
\n
"
);
BIO_printf
(
bio_err
,
"program when this computer is idle.
\n
"
);
}
#ifndef OPENSSL_NO_RSA
#ifndef OPENSSL_NO_RSA
for
(
i
=
0
;
i
<
RSA_NUM
;
i
++
)
for
(
i
=
0
;
i
<
RSA_NUM
;
i
++
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录