diff options
author | Chris Robinson <[email protected]> | 2019-03-26 10:18:02 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-03-26 10:20:32 -0700 |
commit | 525b5e65b2cbe519c561b9995c84ef3e885aa5ab (patch) | |
tree | f5b4d5c2f6922771d24836143eb3327b0be04cf7 /Alc/backends | |
parent | 2c37d4fae1effb6791912bd1cff64777291bec78 (diff) |
Remove a couple unnecessary duration_casts
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/base.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/backends/base.h b/Alc/backends/base.h index b086104d..2498bcd2 100644 --- a/Alc/backends/base.h +++ b/Alc/backends/base.h @@ -21,9 +21,8 @@ inline std::chrono::nanoseconds GetDeviceClockTime(ALCdevice *device) { using std::chrono::seconds; using std::chrono::nanoseconds; - using std::chrono::duration_cast; - auto ns = duration_cast<nanoseconds>(seconds{device->SamplesDone}) / device->Frequency; + auto ns = nanoseconds{seconds{device->SamplesDone}} / device->Frequency; return device->ClockBase + ns; } |