diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-10-07 07:13:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-07 07:13:27 -0400 |
| commit | 94b40b328b7e455ad4799b98c2b00cd5d96f86f3 (patch) | |
| tree | 56421e4f0a153e23f40d4992debcd54fa4453149 /src/settings.cpp | |
| parent | 4dbd5412860deaf0d709be5dfac1b8772285d92d (diff) | |
| parent | a082c029b25dcbf0877f318092eae925d177f223 (diff) | |
Merge pull request #859 from isanae/usvfs-delay-parameter
Added spawn delay setting, not exposed
Diffstat (limited to 'src/settings.cpp')
| -rw-r--r-- | src/settings.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 15bc801a..5aeb82fe 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1997,3 +1997,14 @@ void DiagnosticsSettings::setCrashDumpsMax(int n) { set(m_Settings, "Settings", "crash_dumps_max", n); } + +std::chrono::seconds DiagnosticsSettings::spawnDelay() const +{ + return std::chrono::seconds( + get<int>(m_Settings, "Settings", "spawn_delay", 0)); +} + +void DiagnosticsSettings::setSpawnDelay(std::chrono::seconds t) +{ + set(m_Settings, "Settings", "spawn_delay", t.count()); +} |
