def _get_note_writing_latency(self, notes: pd.DataFrame) -> pd.DataFrame:
    """Identify the time in milliseconds from post to note creation."""
    notes = notes[[c.noteIdKey, _NOTE_CREATION_MILLIS, _TWEET_CREATION_MILLIS]].copy()
    notes[_NOTE_WRITING_LATENCY] = notes[_NOTE_CREATION_MILLIS] - notes[_TWEET_CREATION_MILLIS]
    return notes[[c.noteIdKey, _NOTE_WRITING_LATENCY]]
Identify the time in milliseconds from post to note creation.
sourcecode/scoring/pflip_plus_model.py