use nanotime, not millitime