static_cast value to microsecond type (#73595)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/73595
In some platforms, this might be a distinct type from 64-bit signed
integral, and the compiler might warn about implicit coercion.
Test Plan: Imported from OSS
Reviewed By: malfet
Differential Revision: D34558344
Pulled By: dagitses
fbshipit-source-id: 7a07d0723688390a7f27e6e71480d22c1e077200
(cherry picked from commit 8b807c4431f909c20b3133a6522b58d7b9ab0d85)