static void FullName(MoviesDB moviesDB, bool printSep, int width) { long msecs1 = Environment.TickCount; long len = 0; foreach (long id in moviesDB.Actors()) { string fullName = moviesDB.FullName(id); len += fullName.Length; } long msecs2 = Environment.TickCount; PrintTime(msecs2 - msecs1, printSep, width); }
static void CoActorsInMoviesWithRankAbove(MoviesDB moviesDB, bool printSep, int width) { long msecs1 = Environment.TickCount; long maxCoActors = 0; foreach (long id in moviesDB.Actors()) { long[] coActors = moviesDB.CoActorsInMoviesWithRankAbove(id, 6.0); if (coActors.Length > maxCoActors) { maxCoActors = coActors.Length; } } long msecs2 = Environment.TickCount; PrintTime(msecs2 - msecs1, printSep, width); }