Home | History | Annotate | Download | only in time

Lines Matching refs:FromMilliseconds

402   t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1000);
414 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1001);
463 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1000);
475 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1001);
576 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10));
656 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10));
729 EXPECT_TRUE(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000));
730 EXPECT_TRUE(TimeDelta::FromMilliseconds(2) ==
733 TimeDelta::FromMilliseconds(2300));
741 EXPECT_EQ(13, TimeDelta::FromMilliseconds(13).InMilliseconds());
742 EXPECT_EQ(13.0, TimeDelta::FromMilliseconds(13).InMillisecondsF());
861 t = TimeDelta::FromMilliseconds(max_int / Time::kMillisecondsPerSecond + 1);
870 t = TimeDelta::FromMilliseconds(-max_int / Time::kMillisecondsPerSecond - 1);
902 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
903 TimeDelta::FromMilliseconds(1000) * d);
904 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
905 TimeDelta::FromMilliseconds(1000) / d);
906 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
907 TimeDelta::FromMilliseconds(1000) *= d);
908 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
909 TimeDelta::FromMilliseconds(1000) /= d);
910 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
911 d * TimeDelta::FromMilliseconds(1000));
914 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
915 TimeDelta::FromMilliseconds(1000) * f);
916 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
917 TimeDelta::FromMilliseconds(1000) / f);
918 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
919 TimeDelta::FromMilliseconds(1000) *= f);
920 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
921 TimeDelta::FromMilliseconds(1000) /= f);
922 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
923 f * TimeDelta::FromMilliseconds(1000));
926 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
927 TimeDelta::FromMilliseconds(1000) * i);
928 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
929 TimeDelta::FromMilliseconds(1000) / i);
930 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
931 TimeDelta::FromMilliseconds(1000) *= i);
932 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
933 TimeDelta::FromMilliseconds(1000) /= i);
934 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
935 i * TimeDelta::FromMilliseconds(1000));
938 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
939 TimeDelta::FromMilliseconds(1000) * i64);
940 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
941 FromMilliseconds(1000) / i64);
942 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
943 TimeDelta::FromMilliseconds(1000) *= i64);
944 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
945 TimeDelta::FromMilliseconds(1000) /= i64);
946 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
947 i64 * TimeDelta::FromMilliseconds(1000));
949 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
950 TimeDelta::FromMilliseconds(1000) * 0.5);
951 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
952 TimeDelta::FromMilliseconds(1000) / 0.5);
953 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
954 TimeDelta::FromMilliseconds(1000) *= 0.5);
955 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
956 TimeDelta::FromMilliseconds(1000) /= 0.5);
957 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
958 0.5 * TimeDelta::FromMilliseconds(1000));
960 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
961 TimeDelta::FromMilliseconds(1000) * 2);
962 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
963 TimeDelta::FromMilliseconds(1000) / 2);
964 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
965 TimeDelta::FromMilliseconds(1000) *= 2);
966 EXPECT_EQ(TimeDelta::FromMilliseconds(500),
967 TimeDelta::FromMilliseconds(1000) /= 2);
968 EXPECT_EQ(TimeDelta::FromMilliseconds(2000),
969 2 * TimeDelta::FromMilliseconds(1000));
978 TimeDelta large_delta = TimeDelta::Max() - TimeDelta::FromMilliseconds(1);
1049 TimeDelta five_hundred_ms = TimeDelta::FromMilliseconds(500);