Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphicsframework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oliver Behnke
graphicsframework
Commits
41df1f9c
Commit
41df1f9c
authored
17 years ago
by
Oliver Bock
Browse files
Options
Downloads
Patches
Plain Diff
HUD "CPU Time" display now shows the total time (previously accumulated + current session)
parent
bf6bb041
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
BOINCClientAdapter.cpp
+5
-0
5 additions, 0 deletions
BOINCClientAdapter.cpp
BOINCClientAdapter.h
+7
-0
7 additions, 0 deletions
BOINCClientAdapter.h
StarsphereS5R3.cpp
+2
-2
2 additions, 2 deletions
StarsphereS5R3.cpp
with
14 additions
and
2 deletions
BOINCClientAdapter.cpp
+
5
−
0
View file @
41df1f9c
...
...
@@ -149,3 +149,8 @@ double BOINCClientAdapter::wuDiskBound() const
{
return
m_UserData
.
rsc_disk_bound
;
}
double
BOINCClientAdapter
::
wuCPUTimeSpent
()
const
{
return
m_UserData
.
wu_cpu_time
;
}
This diff is collapsed.
Click to expand it.
BOINCClientAdapter.h
+
7
−
0
View file @
41df1f9c
...
...
@@ -123,6 +123,13 @@ public:
double
wuMemoryBound
()
const
;
double
wuDiskBound
()
const
;
/**
* \brief Retrieves the accumulated time spent on the currently active work unit
*
* \return The time spent on the work unit
*/
double
wuCPUTimeSpent
()
const
;
/**
* \brief Retrieves information provided by the running science application
*
...
...
This diff is collapsed.
Click to expand it.
StarsphereS5R3.cpp
+
2
−
2
View file @
41df1f9c
...
...
@@ -72,8 +72,8 @@ void StarsphereS5R3::refreshBOINCInformation()
m_WUPercentDone
=
buffer
.
str
();
buffer
.
str
(
""
);
//
/ \todo Show accumulated time (init_data time + shmem time)
const
double
cputime
=
m_EinsteinAdapter
.
wuCPUTime
();
//
show WU's total CPU time (previously accumulated + current session)
const
double
cputime
=
m_BoincAdapter
.
wuCPUTimeSpent
()
+
m_EinsteinAdapter
.
wuCPUTime
();
const
int
hrs
=
cputime
/
3600
;
const
int
min
=
(
cputime
-
hrs
*
3600
)
/
60
;
const
int
sec
=
cputime
-
(
hrs
*
3600
+
min
*
60
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment