summaryrefslogtreecommitdiff
path: root/backgroundtask.cpp
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-01-22 16:11:19 -0500
committerJosh Ferrell <josh@vector35.com>2024-01-22 16:11:19 -0500
commit3dd22f40996fc128ffce6026e8e747ca66bcc21d (patch)
treea5e7fc57dc620fc4d4a408ffdbf114bb66dcf91d /backgroundtask.cpp
parent96053ffc711aa27fcaeeb6cbfa89df0c253361f8 (diff)
Project support
Diffstat (limited to 'backgroundtask.cpp')
-rw-r--r--backgroundtask.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/backgroundtask.cpp b/backgroundtask.cpp
index b2d4a738..5aeadaf8 100644
--- a/backgroundtask.cpp
+++ b/backgroundtask.cpp
@@ -43,6 +43,12 @@ string BackgroundTask::GetProgressText() const
}
+uint64_t BackgroundTask::GetRuntimeSeconds() const
+{
+ return BNGetBackgroundTaskRuntimeSeconds(m_object);
+}
+
+
void BackgroundTask::Cancel()
{
BNCancelBackgroundTask(m_object);