Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rlib
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
rlib
Merge requests
!2
An error occurred while fetching the assigned milestone of the selected merge_request.
shell_run
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
shell_run
tmp_shell_run
into
master
Overview
0
Commits
5
Pipelines
1
Changes
2
Merged
Recolic
requested to merge
tmp_shell_run
into
master
2 months ago
Overview
0
Commits
5
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
5fb20249
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5fb20249
.
· 5fb20249
Recolic
authored
2 months ago
functional.hpp
+
1
−
1
Options
@@ -48,7 +48,7 @@ namespace rlib {
return
std
::
chrono
::
duration
<
double
>
(
end
-
begin
).
count
();
}
template
<
typename
Func
,
typename
...
Args
>
static
inline
auto
timeout
(
double
timeout_seconds
,
Func
&&
func
,
Args
&&
...
args
)
{
static
inline
auto
timeout
(
int
timeout_seconds
,
Func
&&
func
,
Args
&&
...
args
)
{
using
ReturnType
=
decltype
(
func
(
args
...));
auto
future
=
std
::
async
(
std
::
launch
::
async
,
std
::
forward
<
Func
>
(
func
),
std
::
forward
<
Args
>
(
args
)...);
Loading