When would one use 临时 versus 及时? Recently I read the following dialogue:

A: 今天有转校生要来吗？
B: 听说是这样，好象是临时决定的，所以才没有及时通知我们。

As I was trying to make out what they were saying, I noticed that 临时 and 及时 have similar meanings. The former seems to mean &quot;at the instant something happens&quot; or &quot;ad hoc&quot; while the latter seems to mean &quot;promptly&quot; or &quot;without delay.&quot;
I have a feeling that in the second sentence, replacing &quot;好象是临时决定的&quot; with &quot;好象是及时决定的&quot; would also work.
What's the difference between them, and when should I use one over the other?
When you use "临时", your point is "wasn't part of the plan".

When you use "及时", your point is "rapidly/promptly".

So if you replacing "好象是临时决定的" with "好象是及时决定的", it also works but the point will become to "They made the decision promptly" from "They made the decision that wasn't the part of the plan (of the meeting)".

Of cource "临时" has other meanings, such as "temporarily", which means a temporary solution which will be replaced by the formal one later on.