Step 1: Using the formula for exponential decay.
The rate of decay is given by the differential equation:
\[
\frac{dm}{dt} = -km
\]
Integrating this equation gives:
\[
\ln m = -kt + C
\]
Step 2: Finding the time for decay.
We use the initial condition \( m = m_0 \) at \( t = 0 \) to find the constant \( C \), which gives:
\[
\ln m_0 = C
\]
Now, solving for the time when the mass decays from \( m_0 \) to \( m_1 \), we get:
\[
t = \frac{1}{k} \log \left( \frac{m_0}{m_1} \right)
\]
Step 3: Conclusion.
Thus, the time during which the original mass of \( m_0 \) gram will decay to \( m_1 \) gram is \( \boxed{\frac{1}{k} \log \left( \frac{m_0}{m_1} \right)} \).