godzcheater

COD MW2/3 Time Conversion

Mar 11th, 2012
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1.         public static System.Int32 TimeToInt(System.TimeSpan Time)
  2.         {
  3.             return (System.Int32)(Time.Ticks / 10000);
  4.         }
  5.         public static System.TimeSpan IntToTime(System.Int32 Time)
  6.         {
  7.             return new System.TimeSpan((System.Int64)Time * 10000);
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment