Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kumir2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kumir
kumir2
Commits
b0508bd8
Commit
b0508bd8
authored
May 28, 2021
by
Alexander A. Maly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added milliseconds ellapsed time counting
parent
507f45a2
Pipeline
#3522
passed with stages
in 4 minutes
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
src/plugins/coregui/terminal_onesession.cpp
src/plugins/coregui/terminal_onesession.cpp
+11
-6
No files found.
src/plugins/coregui/terminal_onesession.cpp
View file @
b0508bd8
...
...
@@ -97,9 +97,9 @@ QSize OneSession::visibleSize() const
QString
OneSession
::
plainText
(
bool
footer_header
)
const
{
const
QString
body
=
lines_
.
join
(
"
\n
"
);
const
QString
header
=
headerText
();
const
QString
footer
=
footerText
();
QString
body
=
lines_
.
join
(
"
\n
"
);
QString
header
=
headerText
();
QString
footer
=
footerText
();
if
(
footer_header
)
{
return
header
+
"
\n
"
+
body
+
"
\n
"
+
footer
+
"
\n
"
;
}
else
{
...
...
@@ -110,8 +110,8 @@ QString OneSession::plainText(bool footer_header) const
QSize
OneSession
::
minimumSizeHint
()
const
{
const
QFontMetrics
headingFM
(
utilityFont
());
const
QFontMetrics
mainFM
(
font
());
QFontMetrics
headingFM
(
utilityFont
());
QFontMetrics
mainFM
(
font
());
int
minH
=
2
*
(
headingFM
.
height
()
+
BodyPadding
+
HeaderPadding
)
+
mainFM
.
height
();
int
minWidthInChars
=
fixedWidth_
==
-
1
?
10
:
fixedWidth_
;
...
...
@@ -793,13 +793,18 @@ QString OneSession::headerText() const
QString
OneSession
::
footerText
()
const
{
return
endTime_
.
isValid
()
QString
res
=
endTime_
.
isValid
()
?
tr
(
">> %1:%2:%3 - %4 - Process finished"
)
.
arg
(
endTime_
.
time
().
hour
(),
2
,
10
,
QChar
(
' '
))
.
arg
(
endTime_
.
time
().
minute
(),
2
,
10
,
QChar
(
'0'
))
.
arg
(
endTime_
.
time
().
second
(),
2
,
10
,
QChar
(
'0'
))
.
arg
(
fileName_
)
:
""
;
if
(
startTime_
.
isValid
()
&&
endTime_
.
isValid
())
{
double
dt
=
startTime_
.
msecsTo
(
endTime_
)
*
1e-3
;
res
+=
" "
+
QString
::
number
(
dt
,
'f'
,
3
)
+
" "
;
}
return
res
;
}
QFont
OneSession
::
utilityFont
()
const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment