Migrate interval to intervalMs to support millisecond profiling