do you definitely set lastSendTime before this is called? otherwise you might need this to be a uint64_t