When a person in actual confinement under sentence of another jurisdiction is brought for trial before a court of this State, the court may, upon sentencing, specifically impose a sentence to be concurrently served and direct that such person receive credit against the sentence imposed for all time subsequently served in the jurisdiction possessing physical custody of such person.
N.C. Gen. Stat. § 15-6.3